Skip to content
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
2 changes: 1 addition & 1 deletion src/features/settings/SettingsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function SettingsScreen() {
</Suspense>
</SettingsSection>

<SettingsSection rowGap="compact">
<SettingsSection>
<SettingsRow
label="로그아웃"
onClick={() => setLogoutOpen(true)}
Expand Down
16 changes: 3 additions & 13 deletions src/features/settings/components/SettingsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,14 @@ import type { ReactNode } from "react";
interface SettingsSectionProps {
/** 섹션 라벨("계정 정보"·"서비스 정보") — 알림 설정·로그아웃 카드처럼 없는 섹션도 있다 */
title?: string;
/** Figma 기준 행 사이 간격: 계정 정보·서비스 정보는 20px, 로그아웃은 16px */
rowGap?: "default" | "compact";
children: ReactNode;
}

// Figma: 설정 화면(nodeId 3524:152322)의 흰 카드 — Account Section(3524:152329),
// Notification Settings Section(3524:152343), Service Info Section(3524:152347),
// Logout Section(3524:152359) 넷이 같은 배경·radius·padding이라 하나로 합쳤다.
// 섹션 라벨 유무와 행 간격만 다르다.
function SettingsSection({
title,
rowGap = "default",
children,
}: SettingsSectionProps) {
// 섹션 라벨 유무만 다르고, 행 사이는 모두 20px이다(로그아웃 카드도 수정 5364:3268에서 16 → 20px).
function SettingsSection({ title, children }: SettingsSectionProps) {
return (
<section className="flex flex-col gap-4 rounded-xl bg-background-normal p-4">
{title && (
Expand All @@ -30,11 +24,7 @@ function SettingsSection({
{title}
</Typography>
)}
<div
className={`flex flex-col ${rowGap === "compact" ? "gap-4" : "gap-5"}`}
>
{children}
</div>
<div className="flex flex-col gap-5">{children}</div>
</section>
);
}
Expand Down
Loading