From 80f7e8b5652f7e1fb62fdce84e2a4fb7a38cfe48 Mon Sep 17 00:00:00 2001 From: Hojin Date: Fri, 26 Jan 2024 11:58:54 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20planItem=20=EA=B0=84=EA=B2=A9=20?= =?UTF-8?q?=EC=9E=AC=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Plan/PlanEditItemBox.tsx | 12 +++++++----- src/components/Plan/PlanItemBox.tsx | 14 ++++++++------ 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/components/Plan/PlanEditItemBox.tsx b/src/components/Plan/PlanEditItemBox.tsx index ff85fb4c..48230566 100644 --- a/src/components/Plan/PlanEditItemBox.tsx +++ b/src/components/Plan/PlanEditItemBox.tsx @@ -132,22 +132,24 @@ const PlanEditItemBox = ({ checked={selectedItemId === item.tripItemId}>
-
+
img -
+
{item.name.length > 17 ? item.name.slice(0, 17) + '...' : item.name}
-
- {item.category} +
+
+ {item.category} +
-
+
{item.price} 원
diff --git a/src/components/Plan/PlanItemBox.tsx b/src/components/Plan/PlanItemBox.tsx index 31a926b7..a09fb8cd 100644 --- a/src/components/Plan/PlanItemBox.tsx +++ b/src/components/Plan/PlanItemBox.tsx @@ -64,7 +64,7 @@ const PlanItemBox = ({ return ( <>
-
{day}
+
{day}
{item.map((item, index) => (
@@ -76,22 +76,24 @@ const PlanItemBox = ({
-
+
img -
+
{item.name.length > 19 ? item.name.slice(0, 19) + '...' : item.name}
-
- {item.category} +
+
+ {item.category} +
-
+
{item.price.toLocaleString()} 원 {tripAuthority == 'WRITE' && (