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 }