From 4d5f42192d4eac77f42d1e4337c40f6612a1b7fa Mon Sep 17 00:00:00 2001 From: HBSPS Date: Sun, 13 Oct 2024 22:58:32 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=ED=99=88=20=ED=99=94=EB=A9=B4=20?= =?UTF-8?q?=EB=82=B4=20=EC=A3=BC=EB=B3=80=20SPOT=20=EC=97=86=EB=8A=94=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20=EB=AC=B8=EA=B5=AC=20=EC=B6=9C=EB=A0=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-native/src/pages/Home/Home.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/react-native/src/pages/Home/Home.tsx b/packages/react-native/src/pages/Home/Home.tsx index c64eb1a5..9df4a7f6 100644 --- a/packages/react-native/src/pages/Home/Home.tsx +++ b/packages/react-native/src/pages/Home/Home.tsx @@ -53,15 +53,13 @@ export default withSuspense(function Home({ navigation }: HomeScreenProps) { renderItem={({ item }) => } /> - {nearbySpots.length > 0 && ( - - } - /> - - )} + + } + /> + Date: Sun, 13 Oct 2024 23:38:14 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20?= =?UTF-8?q?=EC=97=86=EB=8A=94=20=EA=B2=BD=EC=9A=B0=20=EC=B9=B4=EB=93=9C?= =?UTF-8?q?=EC=97=90=20=EB=A1=9C=EA=B3=A0=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-native/src/components/common/Card.tsx | 8 +++++++- .../react-native/src/components/detail/AroundCard.tsx | 8 +++++++- .../react-native/src/components/gamification/QuizCard.tsx | 7 +++++++ .../react-native/src/components/mypage/MySpotBlock.tsx | 6 +++++- 4 files changed, 26 insertions(+), 3 deletions(-) diff --git a/packages/react-native/src/components/common/Card.tsx b/packages/react-native/src/components/common/Card.tsx index 6d063fff..2653e7c9 100644 --- a/packages/react-native/src/components/common/Card.tsx +++ b/packages/react-native/src/components/common/Card.tsx @@ -9,6 +9,7 @@ import { getDisplayRegion } from '@/utils/getDisplayRegionName'; import useSpotLikeMutation from '@/apis/mutations/useSpotLikeMutation'; import MutationLoadingModal from './MutationLoadingModal'; import { MySpotResponse } from '@/apis/queries/mypage/useMySpotsQuery'; +import SPOTLogo from '@/assets/SPOTLogo'; interface CardProps { data: SpotCardData | MySpotResponse; @@ -74,7 +75,7 @@ function Default({ data, size = 260 }: CardProps) { return ( + {!posterUrl && ( + + + + )} )} + {!image && ( + + + + )} {title} diff --git a/packages/react-native/src/components/gamification/QuizCard.tsx b/packages/react-native/src/components/gamification/QuizCard.tsx index ef15be66..e012dce2 100644 --- a/packages/react-native/src/components/gamification/QuizCard.tsx +++ b/packages/react-native/src/components/gamification/QuizCard.tsx @@ -6,6 +6,7 @@ import { StackNavigation } from '@/types/navigation'; import { getDisplayRegion } from '@/utils/getDisplayRegionName'; import useToggle from '@/hooks/useToggle'; import FilterExperienceModal from './FilterExperienceModal'; +import SPOTLogo from '@/assets/SPOTLogo'; interface QuizCardProps { quizData: QuizzesResponse; @@ -57,7 +58,13 @@ export default function QuizCard({ quizData }: QuizCardProps) { borderTopLeftRadius: 25, borderTopRightRadius: 25, }} + className="bg-SPOT-red/30" /> + {!quizData.imageUrl && ( + + + + )} diff --git a/packages/react-native/src/components/mypage/MySpotBlock.tsx b/packages/react-native/src/components/mypage/MySpotBlock.tsx index bb1662ec..9049b59c 100644 --- a/packages/react-native/src/components/mypage/MySpotBlock.tsx +++ b/packages/react-native/src/components/mypage/MySpotBlock.tsx @@ -8,6 +8,7 @@ import HeartIcon from '@/assets/HeartIcon'; import { StackNavigation } from '@/types/navigation'; import { getDisplayRegion } from '@/utils/getDisplayRegionName'; import MutationLoadingModal from '../common/MutationLoadingModal'; +import SPOTLogo from '@/assets/SPOTLogo'; interface MySpotBlockProps { mySpot: MySpotResponse; @@ -78,7 +79,7 @@ export default function MySpotBlock({ mySpot, width, gap }: MySpotBlockProps) { + + +