From cb659b0e15a1c15baabc71dbf9c85d251939e251 Mon Sep 17 00:00:00 2001 From: JaehongDev Date: Thu, 4 Jul 2024 12:46:43 +0900 Subject: [PATCH 1/7] =?UTF-8?q?refactor:=20=EB=A9=94=EC=9D=B8=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EB=A1=9C=EB=94=A9=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../QuestionSetItem/QuestionSetItem.tsx | 2 +- .../QuestionSetItemListSkeleton.tsx | 27 +++++++++++++++++++ frontend/src/pages/MainPage.tsx | 4 ++- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 frontend/src/components/QuestionSetItem/QuestionSetItemListSkeleton.tsx diff --git a/frontend/src/components/QuestionSetItem/QuestionSetItem.tsx b/frontend/src/components/QuestionSetItem/QuestionSetItem.tsx index 429cf72..65aa692 100644 --- a/frontend/src/components/QuestionSetItem/QuestionSetItem.tsx +++ b/frontend/src/components/QuestionSetItem/QuestionSetItem.tsx @@ -28,7 +28,7 @@ const QuestionSetItem = ({questionSet:{questionSetId, title, description, tailQu diff --git a/frontend/src/components/QuestionSetItem/QuestionSetItemListSkeleton.tsx b/frontend/src/components/QuestionSetItem/QuestionSetItemListSkeleton.tsx new file mode 100644 index 0000000..5b1fbf0 --- /dev/null +++ b/frontend/src/components/QuestionSetItem/QuestionSetItemListSkeleton.tsx @@ -0,0 +1,27 @@ +import {Button, Card, CardBody, CardFooter, CardHeader, Divider, Skeleton, Spacer} from "@nextui-org/react"; + +const QuestionSetItemListSkeleton = () => { + return new Array(5).fill(0).map((_,index) => + + NEW + +
+
+ + +
+
+
+ + + + + + +