diff --git a/app/gists/page.tsx b/app/gists/page.tsx index 81dfd7a..6bf0475 100644 --- a/app/gists/page.tsx +++ b/app/gists/page.tsx @@ -4,6 +4,7 @@ import UserInfo from './user-info'; import { Suspense } from 'react'; import Pagination from 'components/rua/rua-pagination'; import FileContent from './file-content'; +import UserInfoLoading from './user-info-skeleton'; export default async function Page() { const gists = await getGists(); @@ -17,7 +18,7 @@ export default async function Page() { <>
- + }> {/* @ts-expect-error Async Server Component */} diff --git a/app/gists/user-info-skeleton.tsx b/app/gists/user-info-skeleton.tsx new file mode 100644 index 0000000..30916c6 --- /dev/null +++ b/app/gists/user-info-skeleton.tsx @@ -0,0 +1,69 @@ +import clsx from 'clsx'; +import { FiLink, FiMail, FiTwitter } from 'react-icons/fi'; + +const UserInfoLoading = () => { + return ( + <> +
+
+
+ +
+

+ +

+
+
+ +
+ +
+
+ +
+
+
+ +
+
+
+ +
+
+
+
+ + ); +}; + +export default UserInfoLoading;