Skip to content

fix: qa 수정 #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function ScheduleBlock({
) : (
<View className="rounded-sm w-6 h-6 items-center justify-center bg-[#4c4c4c] mr-4">
<Font.Bold type="body2" color="white">
{order}
{order + 1}
</Font.Bold>
</View>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function TripPlanCard({
<View className="flex-1 bg-black/20">
{isSelectionMode ? (
<View className="p-3">
<CheckBox selected={isSelect} />
<CheckBox selected={isSelect} onPress={onCardClick} />
</View>
) : (
<View className="flex-row justify-end">
Expand Down
7 changes: 1 addition & 6 deletions packages/react-native/src/pages/HomeSpotAdd.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from 'react';
import { Dimensions, View } from 'react-native';
import { Button, FloatingPlusButton, Font } from 'design-system';
import { Button, Font } from 'design-system';
import { useNavigation, useRoute } from '@react-navigation/native';
import useTripPlansQuery from '@/apis/queries/tripPlan/useTripPlansQuery';
import Header from '@/components/common/Header';
Expand Down Expand Up @@ -74,11 +74,6 @@ export default withSuspense(function HomeSpotAdd() {
</Font>
</Button>
</View>
<FloatingPlusButton
bottom={16}
right={16}
onPress={() => navigation.navigate('TripPlanner/Post')}
/>
</>
);
});
17 changes: 15 additions & 2 deletions packages/react-native/src/pages/TripPlanner/AddSchedule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export default function AddSchedule() {
style={{ gap: 15 }}
onPress={() => setAddTYpe('new')}
>
<CheckBox selected={addType === 'new'} />
<CheckBox
selected={addType === 'new'}
onPress={() => setAddTYpe('new')}
/>
<Font.Bold type="title1" color="white">
새 장소 추가하기
</Font.Bold>
Expand Down Expand Up @@ -75,7 +78,10 @@ export default function AddSchedule() {
style={{ gap: 15 }}
onPress={() => setAddTYpe('prev')}
>
<CheckBox selected={addType === 'prev'} />
<CheckBox
selected={addType === 'prev'}
onPress={() => setAddTYpe('prev')}
/>
<Font.Bold type="title1" color="white">
담은 SPOT!에서 선택하기
</Font.Bold>
Expand Down Expand Up @@ -109,6 +115,13 @@ export default function AddSchedule() {
selectedSpot?.type === 'mySpot' &&
selectedSpot.id === mySpot.contentId
}
onPress={() => {
setSelectedSpot({
type: 'mySpot',
id: mySpot.contentId,
});
setLocationName(mySpot.title);
}}
/>
<Font type="title1" color="white">
{mySpot.title}
Expand Down
Loading