diff --git a/src/components/MyTrip/MyTripAfterList.tsx b/src/components/MyTrip/MyTripAfterList.tsx index 543e168d..ec33c2de 100644 --- a/src/components/MyTrip/MyTripAfterList.tsx +++ b/src/components/MyTrip/MyTripAfterList.tsx @@ -19,8 +19,8 @@ const MyTripAfterList: React.FC = ({ myTripsData }) => { return ( <> -
-

지난 여행

+
+

지난 여행

{sortedTrips.map((myTripList: MyTripType) => ( diff --git a/src/components/MyTrip/MyTripBeforeList.tsx b/src/components/MyTrip/MyTripBeforeList.tsx index b5c8c278..e4d27037 100644 --- a/src/components/MyTrip/MyTripBeforeList.tsx +++ b/src/components/MyTrip/MyTripBeforeList.tsx @@ -14,8 +14,8 @@ const MyTripBeforeList: React.FC = ({ myTripsData }) => { return ( <> -
-

다가오는 여행

+
+

다가오는 여행

{myTripsData.map((myTripList: MyTripType) => ( diff --git a/src/components/MyTrip/MyTripIngItem.tsx b/src/components/MyTrip/MyTripIngItem.tsx index 55539e1e..dcac90dd 100644 --- a/src/components/MyTrip/MyTripIngItem.tsx +++ b/src/components/MyTrip/MyTripIngItem.tsx @@ -14,26 +14,28 @@ const MyTripIngItem: React.FC = ({ myTripList }) => { return (
navigate(`/trip/${tripId}`)}>
여행지 이미지
-
- {tripStatus} +
+ + {tripStatus} +
-
+
{tripName}
-
+
{startDate.replace(/-/g, '.')} ~{' '} {endDate.replace(/-/g, '.').split('2024.')} ({tripDuration})
diff --git a/src/components/MyTrip/MyTripItem.tsx b/src/components/MyTrip/MyTripItem.tsx index e4d30dc3..a91a0a2f 100644 --- a/src/components/MyTrip/MyTripItem.tsx +++ b/src/components/MyTrip/MyTripItem.tsx @@ -66,18 +66,18 @@ const MyTripItem: React.FC = ({ myTripList }) => {
-
+
{tripName}
-
- {startDate.replace(/-/g, '.')} ~{' '} +
+ {startDate.replace(/-/g, '.')} -{' '} {endDate.replace(/-/g, '.').split('2024.')} ({tripDuration})
- - {numberOfPeople}명과 공유중 + + {numberOfPeople}명과 공유중
diff --git a/src/pages/create/createTrip.page.tsx b/src/pages/create/createTrip.page.tsx index c9e2b865..a6640f62 100644 --- a/src/pages/create/createTrip.page.tsx +++ b/src/pages/create/createTrip.page.tsx @@ -35,7 +35,7 @@ export const CreateTrip = () => { queryFn: () => getMemberTrips(), }); - const MY_TRIP_NUMBER = data?.data.numberOfElements + 1; + const MY_TRIP_NUMBER = data?.numberOfElements + 1; const defaultTitle = `나의 여정 ${MY_TRIP_NUMBER}`; const handleSubmit = async () => {