From 5cd31675f6ffe1c8bfcfe448cd667504578fb8a6 Mon Sep 17 00:00:00 2001 From: jspark2000 Date: Thu, 29 Feb 2024 15:08:08 +0000 Subject: [PATCH] feat: add streaming on console/dashboard page --- .../_components/ProfileSectionSkeleton.tsx | 20 +++++++++++++++++++ frontend/src/app/console/dashboard/page.tsx | 6 +++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 frontend/src/app/console/dashboard/_components/ProfileSectionSkeleton.tsx diff --git a/frontend/src/app/console/dashboard/_components/ProfileSectionSkeleton.tsx b/frontend/src/app/console/dashboard/_components/ProfileSectionSkeleton.tsx new file mode 100644 index 0000000..20be4d9 --- /dev/null +++ b/frontend/src/app/console/dashboard/_components/ProfileSectionSkeleton.tsx @@ -0,0 +1,20 @@ +import Section from '@/components/Section' +import { Skeleton } from '@/components/ui/skeleton' + +export default function ProfileSectionSkeleton() { + return ( +
+
+
+ +
+
+ + + + +
+
+
+ ) +} diff --git a/frontend/src/app/console/dashboard/page.tsx b/frontend/src/app/console/dashboard/page.tsx index 4802e57..e583e1c 100644 --- a/frontend/src/app/console/dashboard/page.tsx +++ b/frontend/src/app/console/dashboard/page.tsx @@ -1,5 +1,7 @@ +import { Suspense } from 'react' import { NoticeSection } from './_components/NoticeSection' import { ProfileSection } from './_components/ProfileSection' +import ProfileSectionSkeleton from './_components/ProfileSectionSkeleton' export default function ConsoleHome() { return ( @@ -7,7 +9,9 @@ export default function ConsoleHome() {
- + }> + +