fix: 고른 시간대 배경을 세션 저장소에 두어 탭을 옮겨도 유지
This commit is contained in:
1 parent
e923a0760b
commit
c00623e690
3 files changed
+32
-9
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import { createContext, use } from 'react'
|
||||
import type { TimeKind } from './lib'
|
||||
|
||||
/** 화면 전체 하늘 배경의 시간대. 히어로의 미리보기 버튼이 잠시 바꿀 수 있다 */
|
||||
export type SkyApi = { kind: TimeKind; setServerKind: (k: TimeKind | null) => void; setPreview: (k: TimeKind | null) => void }
|
||||
/** 화면 전체 하늘 배경의 시간대. 히어로의 미리보기 버튼으로 고른 값은 탭을 옮겨도 유지된다 */
|
||||
export type SkyApi = { kind: TimeKind; preview: TimeKind | null; setServerKind: (k: TimeKind | null) => void; setPreview: (k: TimeKind | null) => void }
|
||||
|
||||
export const SkyContext = createContext<SkyApi | null>(null)
|
||||
|
||||
|
||||
Reference in new issue
Block a user