From c013f645f1d52af67972e5f178de4b0f87112304 Mon Sep 17 00:00:00 2001 From: YavizGuldalf Date: Mon, 16 Dec 2024 13:51:35 +0300 Subject: [PATCH 1/3] feat(mobile): add onPress to pressable text --- mobile/bulingo/app/pressableText.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mobile/bulingo/app/pressableText.tsx b/mobile/bulingo/app/pressableText.tsx index f2e41be4..63233660 100644 --- a/mobile/bulingo/app/pressableText.tsx +++ b/mobile/bulingo/app/pressableText.tsx @@ -6,6 +6,7 @@ type PressableTextProps = { text: string, style?: StyleProp containerStyle?: StyleProp + onPress?: (word: string) => void }; export default function PressableText(props: PressableTextProps){ @@ -35,6 +36,7 @@ export default function PressableText(props: PressableTextProps){ handleLongPress(word)} + onPress={() => {props.onPress && props.onPress(word)}} // style={} > From 685c85d1b7035e7d81c13303b1892ad9b13cc35c Mon Sep 17 00:00:00 2001 From: Elifnurdeniz Date: Mon, 16 Dec 2024 14:04:03 +0300 Subject: [PATCH 2/3] feat(frontend): added a quiz details skeleton and used skeletons in places where missing --- .../components/quiz/quiz-details-skeleton.tsx | 23 ++ frontend/src/pages/post.tsx | 2 +- frontend/src/pages/profile.tsx | 80 ++--- frontend/src/pages/quiz-details.tsx | 280 +++++++++--------- frontend/src/pages/quiz.tsx | 98 +++--- 5 files changed, 260 insertions(+), 223 deletions(-) create mode 100644 frontend/src/components/quiz/quiz-details-skeleton.tsx diff --git a/frontend/src/components/quiz/quiz-details-skeleton.tsx b/frontend/src/components/quiz/quiz-details-skeleton.tsx new file mode 100644 index 00000000..b5e53c14 --- /dev/null +++ b/frontend/src/components/quiz/quiz-details-skeleton.tsx @@ -0,0 +1,23 @@ +import { Card, Skeleton } from "@nextui-org/react"; + +export default function QuizDetailsCardSkeleton() { + return ( + +
+ +
+
+ + +
+ +
+
+
+ +
+
+
+
+ ); +} diff --git a/frontend/src/pages/post.tsx b/frontend/src/pages/post.tsx index dca5c0b9..975f9590 100644 --- a/frontend/src/pages/post.tsx +++ b/frontend/src/pages/post.tsx @@ -199,7 +199,7 @@ export default function Post() { - +