Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Commit cacfeda

Browse files
committed
Update WhatsNewModal.tsx
1 parent 0df0750 commit cacfeda

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

packages/ui/src/features/updates/WhatsNewModal.tsx

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
Flex,
1212
IconButton,
1313
ScrollArea,
14-
Spinner,
14+
Skeleton,
1515
Text,
1616
} from "@radix-ui/themes";
1717
import { useQuery } from "@tanstack/react-query";
@@ -38,6 +38,27 @@ function ReleaseSection({ title, items }: { title: string; items: string[] }) {
3838
);
3939
}
4040

41+
function ChangelogSkeleton() {
42+
return (
43+
<Flex direction="column" gap="5">
44+
{["a", "b", "c"].map((key) => (
45+
<Flex key={key} direction="column" gap="3">
46+
<Flex align="center" justify="between" gap="2">
47+
<Skeleton width="150px" height="22px" />
48+
<Skeleton width="72px" height="22px" />
49+
</Flex>
50+
<Flex direction="column" gap="2">
51+
<Skeleton width="64px" height="12px" />
52+
<Skeleton width="82%" height="14px" />
53+
<Skeleton width="68%" height="14px" />
54+
<Skeleton width="74%" height="14px" />
55+
</Flex>
56+
</Flex>
57+
))}
58+
</Flex>
59+
);
60+
}
61+
4162
export function WhatsNewModal() {
4263
const isOpen = useWhatsNewStore((state) => state.isOpen);
4364
const close = useWhatsNewStore((state) => state.close);
@@ -77,9 +98,7 @@ export function WhatsNewModal() {
7798
</Flex>
7899

79100
{isLoading ? (
80-
<Flex align="center" justify="center" py="6">
81-
<Spinner />
82-
</Flex>
101+
<ChangelogSkeleton />
83102
) : isError ? (
84103
<Text color="gray" size="2">
85104
Could not load releases. Please try again later.

0 commit comments

Comments
 (0)