From 7c2f5a4639f5b5270dda66c73faaff1045089b00 Mon Sep 17 00:00:00 2001 From: NohWookJin Date: Tue, 16 Jan 2024 16:53:48 +0900 Subject: [PATCH 1/2] =?UTF-8?q?style:=20=EC=97=AC=EC=A0=95=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=EC=A1=B0=ED=9A=8C=20=EB=94=94=EC=9E=90=EC=9D=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MyTrip/MyTrip.tsx | 3 --- src/components/MyTrip/MyTripAfterList.tsx | 4 ++-- src/components/MyTrip/MyTripBeforeList.tsx | 4 ++-- src/components/MyTrip/MyTripIngItem.tsx | 14 ++++++++------ src/components/MyTrip/MyTripItem.tsx | 10 +++++----- 5 files changed, 17 insertions(+), 18 deletions(-) diff --git a/src/components/MyTrip/MyTrip.tsx b/src/components/MyTrip/MyTrip.tsx index ae8ed92e..8958338b 100644 --- a/src/components/MyTrip/MyTrip.tsx +++ b/src/components/MyTrip/MyTrip.tsx @@ -31,9 +31,6 @@ const MyTrip = () => { return (
-
-

나의 여정

-
{data.length > 0 ? ( <> 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}명과 공유중
From c38a0cada9eca4ff75eaf0a25fe9fc5365d5f06e Mon Sep 17 00:00:00 2001 From: NohWookJin Date: Tue, 16 Jan 2024 17:31:03 +0900 Subject: [PATCH 2/2] =?UTF-8?q?style:=20=EC=97=AC=EC=A0=95=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=EC=A1=B0=ED=9A=8C=20=EB=94=94=EC=9E=90=EC=9D=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MyTrip/MyTrip.tsx | 3 +++ src/pages/create/createTrip.page.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/MyTrip/MyTrip.tsx b/src/components/MyTrip/MyTrip.tsx index 8958338b..ae8ed92e 100644 --- a/src/components/MyTrip/MyTrip.tsx +++ b/src/components/MyTrip/MyTrip.tsx @@ -31,6 +31,9 @@ const MyTrip = () => { return (
+
+

나의 여정

+
{data.length > 0 ? ( <> 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 () => {