feat: 앱 계정 레벨 — 하루 출석 각, 아바타 Lv 표시, 내 정보 레벨 카드, 내 레벨·레벨업 창, 공유하면 하루 한 번 각, 각을 주는 일 뒤 레벨 다시 받기. 아이콘 목록을 웹 아이콘 전부로 (GA sheet_open level·levelUp)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
01b5f917b9
commit
e40a9a0539
16 files changed
+360
-19
No files matched your search
@@ -13,6 +13,7 @@ import { CommentsSheet } from './comments';
|
||||
import { GakSheet } from './gak';
|
||||
import { LoginSheet } from './login';
|
||||
import { MeSheet } from './me';
|
||||
import { LevelSheet, LevelUpSheet } from './level';
|
||||
import { RegionSheet } from './region';
|
||||
import { WeatherWhySheet } from './weather-why';
|
||||
|
||||
@@ -36,7 +37,7 @@ export function SheetProvider({ children }: { children: ReactNode }) {
|
||||
);
|
||||
}
|
||||
|
||||
const TITLES = { article: '읽을거리', seasonWeek: '이번 주 특집', comments: '댓글', login: '로그인', me: '내 정보', region: '지역 바꾸기', weatherWhy: '날씨 점수는 이렇게 나와요' } as const;
|
||||
const TITLES = { article: '읽을거리', seasonWeek: '이번 주 특집', comments: '댓글', login: '로그인', me: '내 정보', region: '지역 바꾸기', weatherWhy: '날씨 점수는 이렇게 나와요', level: '내 레벨', levelUp: '레벨이 올랐어요' } as const;
|
||||
|
||||
/** 판만 아래에서 올라온다 (웹 b-sheet: 0.26초, 40px 아래·흐릿하게에서) */
|
||||
function Rise({ children }: { children: ReactNode }) {
|
||||
@@ -90,10 +91,12 @@ function SheetHost({ state: next, onClose }: { state: SheetState; onClose: () =>
|
||||
{state.type === 'article' && <ArticleSheet articleId={state.articleId} onTitle={setArticleTitle} />}
|
||||
{state.type === 'seasonWeek' && <SeasonWeekSheet />}
|
||||
{state.type === 'comments' && <CommentsSheet postId={state.postId} draft={state.draft} />}
|
||||
{state.type === 'login' && <LoginSheet onDone={onClose} onLoggedIn={then ? () => open(then) : onClose} />}
|
||||
{state.type === 'login' && <LoginSheet onDone={onClose} onLoggedIn={then ? () => open(then) : onClose} why={state.why} />}
|
||||
{state.type === 'me' && <MeSheet onDone={onClose} />}
|
||||
{state.type === 'region' && <RegionSheet onDone={onClose} />}
|
||||
{state.type === 'weatherWhy' && <WeatherWhySheet d={state.why} />}
|
||||
{state.type === 'level' && <LevelSheet />}
|
||||
{state.type === 'levelUp' && <LevelUpSheet level={state.level} />}
|
||||
</View>
|
||||
</Rise>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user