mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
feat(ui): Add feature flag system (#208)
This commit is contained in:
@@ -553,3 +553,19 @@ export const useLocalAuthModalStore = create<LocalAuthModalState>(set => ({
|
||||
modalView: "createPassword",
|
||||
setModalView: view => set({ modalView: view }),
|
||||
}));
|
||||
|
||||
export interface DeviceState {
|
||||
appVersion: string | null;
|
||||
systemVersion: string | null;
|
||||
|
||||
setAppVersion: (version: string) => void;
|
||||
setSystemVersion: (version: string) => void;
|
||||
}
|
||||
|
||||
export const useDeviceStore = create<DeviceState>(set => ({
|
||||
appVersion: null,
|
||||
systemVersion: null,
|
||||
|
||||
setAppVersion: version => set({ appVersion: version }),
|
||||
setSystemVersion: version => set({ systemVersion: version }),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user