diff --git a/app/components/layout/Header.tsx b/app/components/layout/Header.tsx index 8880859f..70053f37 100644 --- a/app/components/layout/Header.tsx +++ b/app/components/layout/Header.tsx @@ -12,7 +12,7 @@ export default function Header({ rightElement, }: HeaderProps) { return ( -
+
{/* 왼쪽: 뒤로가기 버튼 */}
{showBack && ( diff --git a/app/routes/business/proposal/received-proposal-content.tsx b/app/routes/business/proposal/received-proposal-content.tsx index 312b93cf..b637df6c 100644 --- a/app/routes/business/proposal/received-proposal-content.tsx +++ b/app/routes/business/proposal/received-proposal-content.tsx @@ -118,7 +118,7 @@ export default function ReceivedProposalContent() { return (
-
+
navigate(-1)} />
diff --git a/app/routes/mypage/components/profileCard/TraitModal.tsx b/app/routes/mypage/components/profileCard/TraitModal.tsx index 61a70eac..84d53826 100644 --- a/app/routes/mypage/components/profileCard/TraitModal.tsx +++ b/app/routes/mypage/components/profileCard/TraitModal.tsx @@ -1,3 +1,5 @@ +import { useHideBottomTab } from "../../../../hooks/useHideBottomTab"; + type Trait = { badge: string; icon: (className?: string) => React.ReactNode; @@ -12,106 +14,119 @@ export default function TraitModal({ trait: Trait; onClose: () => void; }) { + useHideBottomTab(true); + + const isContentTrait = trait.badge.includes("콘텐츠"); const cols = trait.topSummary.length; return (
-
e.stopPropagation()} - > - {/* close */} - + + + + + + + + + + + - {/* body */} -
-
-
-
-
{trait.icon("w-[46px] h-[47px]")}
+ {/* body */} +
+
+
+
+
{trait.icon("w-[46px] h-[47px]")}
+
+
+ {trait.badge} +
-
- {trait.badge} +
+ + {/* top summary bar */} +
+
+ {trait.topSummary.map((item, i) => ( +
+
+ {item.label} +
+
+ {isContentTrait + ? item.value.replace(/,\s*/g, "\n") + : item.value} +
+
+ ))}
-
- {/* top summary bar */} -
-
- {trait.topSummary.map((item, i) => ( -
-
- {item.label} + {/* sections */} +
+ {trait.sections.map((section, i) => ( +
+
+ {section.title}
-
- {item.value} +
+ {isContentTrait + ? section.items.map((item, idx) => ( + + {item} + + )) + : section.items.join(", ")}
))}
- - {/* sections */} -
- {trait.sections.map((section, i) => ( -
-
- {section.title} -
-
- {section.items.join(", ")} -
-
- ))} -
diff --git a/app/routes/mypage/edit/edit-content.tsx b/app/routes/mypage/edit/edit-content.tsx index 193ed840..adad8195 100644 --- a/app/routes/mypage/edit/edit-content.tsx +++ b/app/routes/mypage/edit/edit-content.tsx @@ -194,7 +194,7 @@ export default function MyPageEdit() { return (
-
+
navigate(-1)} diff --git a/app/routes/mypage/likes/likes-content.tsx b/app/routes/mypage/likes/likes-content.tsx index 7583a3ea..b3a5f08c 100644 --- a/app/routes/mypage/likes/likes-content.tsx +++ b/app/routes/mypage/likes/likes-content.tsx @@ -312,7 +312,7 @@ export default function MyPageLikes() { return (
-
+
-
+
navigate(-1)} diff --git a/app/routes/mypage/notification/notifications-content.tsx b/app/routes/mypage/notification/notifications-content.tsx index d59f9b4e..d13868ac 100644 --- a/app/routes/mypage/notification/notifications-content.tsx +++ b/app/routes/mypage/notification/notifications-content.tsx @@ -93,7 +93,7 @@ export default function MyPageNotifications() {
-
+
navigate(-1)} />
diff --git a/app/routes/mypage/privacy/privacy-content.tsx b/app/routes/mypage/privacy/privacy-content.tsx index 66282aad..240401fb 100644 --- a/app/routes/mypage/privacy/privacy-content.tsx +++ b/app/routes/mypage/privacy/privacy-content.tsx @@ -68,7 +68,7 @@ export default function MyPagePrivacy() { return (
-
+
navigate(-1)} />
diff --git a/app/routes/mypage/profileCard/profileCard-content.tsx b/app/routes/mypage/profileCard/profileCard-content.tsx index 42bdcef3..803c2f57 100644 --- a/app/routes/mypage/profileCard/profileCard-content.tsx +++ b/app/routes/mypage/profileCard/profileCard-content.tsx @@ -242,7 +242,7 @@ export default function ProfileCard() {
{/* header */} -
+
history.back()} diff --git a/app/routes/mypage/terms/terms-content.tsx b/app/routes/mypage/terms/terms-content.tsx index dfd011ee..ad829852 100644 --- a/app/routes/mypage/terms/terms-content.tsx +++ b/app/routes/mypage/terms/terms-content.tsx @@ -53,7 +53,7 @@ export default function MyPageTerms() { return (
-
+
navigate(-1)} />
diff --git a/app/routes/mypage/traits/traits-content.tsx b/app/routes/mypage/traits/traits-content.tsx index f0966d47..35cfa090 100644 --- a/app/routes/mypage/traits/traits-content.tsx +++ b/app/routes/mypage/traits/traits-content.tsx @@ -559,7 +559,7 @@ export default function TraitsPage() { return (
-
+
navigate(-1)} />
diff --git a/app/routes/notification/notification-content.tsx b/app/routes/notification/notification-content.tsx index 4c014a1a..05d69037 100644 --- a/app/routes/notification/notification-content.tsx +++ b/app/routes/notification/notification-content.tsx @@ -96,7 +96,7 @@ export default function NotificationContent() { }; return (
-
+
navigate(-1)} />
@@ -162,4 +162,4 @@ export default function NotificationContent() {
); -} \ No newline at end of file +}