Revert "chore: feat/legal 병합"

This reverts commit 343e3ee2fb, reversing
changes made to f9e927aece.
This commit is contained in:
minaChoi committed 2026-10-08 09:23:30 +09:00
1 parent 343e3ee2fb
commit 58c9d38474
7 files changed
+1 -422

No files matched your search

+1 -6
View File
@@ -27,7 +27,6 @@ import { useRegion } from './regionContext'
import { useSky } from './skyContext'
import { SHARE_SIZES, shareImage, type ShareSize } from './storyImage'
import { SheetContext, useSheet, type SharePayload, type SheetState } from './sheetContext'
import { LegalConsent, LegalLinks, LegalSheet } from './legal/LegalSheet'
import { HeartIcon } from './svg'
import { Avatar, Ic, Skel, StateBox, TAP44, Thumb } from './ui'
@@ -71,7 +70,7 @@ export function SheetProvider({ children }: { children: ReactNode }) {
)
}
const TITLES = { article: '읽을거리', seasonWeek: '이번 주 특집', share: '보내기', comments: '댓글', login: '로그인', me: '내 정보', region: '지역 바꾸기', privacy: '개인정보처리방침', terms: '이용약관' } as const
const TITLES = { article: '읽을거리', seasonWeek: '이번 주 특집', share: '보내기', comments: '댓글', login: '로그인', me: '내 정보', region: '지역 바꾸기' } as const
/** 아래에서 올라오는 창: 네이티브 <dialog>라 ESC·포커스 가두기·포커스 되돌리기가 기본으로 된다 */
function SheetHost({ state, onClose }: { state: SheetState; onClose: () => void }) {
@@ -131,7 +130,6 @@ function SheetHost({ state, onClose }: { state: SheetState; onClose: () => void
{state.type === 'login' && <LoginSheet onDone={onClose} onLoggedIn={then ? () => open(then) : onClose} />}
{state.type === 'me' && <MeSheet onDone={onClose} />}
{state.type === 'region' && <RegionSheet onDone={onClose} />}
{(state.type === 'privacy' || state.type === 'terms') && <LegalSheet kind={state.type} />}
</div>
)}
</dialog>
@@ -817,7 +815,6 @@ function LoginSheet({ onDone, onLoggedIn }: { onDone: () => void; onLoggedIn: ()
<button type="button" onClick={onDone} className="cursor-pointer rounded-[14px] p-[13px] text-[15px] font-extrabold text-(--ink2)">
나중에 할게요
</button>
<LegalConsent />
</form>
</Body>
)
@@ -942,7 +939,6 @@ function MeSheet({ onDone }: { onDone: () => void }) {
>
로그아웃
</button>
<LegalLinks />
</Body>
)
}
@@ -1002,7 +998,6 @@ function RegionSheet({ onDone }: { onDone: () => void }) {
{me ? '로그아웃' : '로그인'}
</button>
</p>
<LegalLinks className="mt-2" />
</Body>
)
}