From 4ef99e5f73f83c08af88ca789985ed9d401989e0 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Wed, 28 Oct 2026 15:45:26 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=82=AC=EC=A3=BC=20=EC=9E=A0=EA=B8=88?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=B0=BD?= =?UTF-8?q?=EC=9D=84=20=EC=97=B4=EB=A9=B4=20=EA=B8=80=EC=93=B0=EA=B8=B0=20?= =?UTF-8?q?=EC=95=88=EB=82=B4=20=EB=8C=80=EC=8B=A0=20=EA=B0=81=C2=B7?= =?UTF-8?q?=EB=A0=88=EB=B2=A8=20=EC=95=88=EB=82=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/SajuPage.tsx | 2 +- frontend/src/b/Sheets.tsx | 6 +++--- frontend/src/b/sheetContext.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/b/SajuPage.tsx b/frontend/src/b/SajuPage.tsx index becd3f8..8ef5f8b 100644 --- a/frontend/src/b/SajuPage.tsx +++ b/frontend/src/b/SajuPage.tsx @@ -295,7 +295,7 @@ function Locked({ locks }: { locks: SajuLock[] }) { {loggedIn ? `Lv.${next.level}에서 열려요${close ? ` · ${level.next_points! - level.points}각 남았어요` : ''}` : '출석·타로·좋아요로 모은 각은 로그인해야 쌓여요'}

- diff --git a/frontend/src/b/Sheets.tsx b/frontend/src/b/Sheets.tsx index 30e0d55..cca0a13 100644 --- a/frontend/src/b/Sheets.tsx +++ b/frontend/src/b/Sheets.tsx @@ -169,7 +169,7 @@ function SheetHost({ state, onClose }: { state: SheetState; onClose: () => void {shown.type === 'seasonWeek' && } {shown.type === 'share' && } {shown.type === 'comments' && } - {shown.type === 'login' && open(then) : onClose} />} + {shown.type === 'login' && open(then) : onClose} why={shown.why} />} {shown.type === 'me' && } {shown.type === 'region' && } {shown.type === 'mix' && } @@ -992,7 +992,7 @@ function CommentsSheet({ postId, draft }: { postId: number; draft?: string }) { } /* ---------- 로그인 ---------- */ -function LoginSheet({ onDone, onLoggedIn }: { onDone: () => void; onLoggedIn: () => void }) { +function LoginSheet({ onDone, onLoggedIn, why }: { onDone: () => void; onLoggedIn: () => void; why?: 'level' }) { const { me } = useAuth() const [error, setError] = useState('') @@ -1013,7 +1013,7 @@ function LoginSheet({ onDone, onLoggedIn }: { onDone: () => void; onLoggedIn: () return (
-

글쓰기는 로그인한 뒤에 할 수 있어요.

+

{why === 'level' ? '로그인하면 출석·타로·사주로 각이 쌓여 레벨이 올라요.' : '글쓰기는 로그인한 뒤에 할 수 있어요.'}

{ setError('') diff --git a/frontend/src/b/sheetContext.ts b/frontend/src/b/sheetContext.ts index a9f1f8e..542ed70 100644 --- a/frontend/src/b/sheetContext.ts +++ b/frontend/src/b/sheetContext.ts @@ -13,7 +13,7 @@ export type SheetState = | { type: 'share'; share: SharePayload } | CommentsState | { type: 'seasonWeek' } - | { type: 'login'; then?: CommentsState } + | { type: 'login'; then?: CommentsState; why?: 'level' } | { type: 'me' } | { type: 'region' } | { type: 'mix'; shared?: MyGak }