mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
fix: state in lastVersionAtom
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { config } from '@affine/env';
|
||||
import { atomWithStorage } from 'jotai/utils';
|
||||
|
||||
export type Visibility = Record<string, boolean>;
|
||||
|
||||
const DEFAULT_VALUE = '0.0.0';
|
||||
|
||||
export const lastVersionAtom = atomWithStorage('lastVersion', DEFAULT_VALUE);
|
||||
export const lastVersionAtom = atomWithStorage(
|
||||
'lastVersion',
|
||||
config.gitVersion
|
||||
);
|
||||
|
||||
export const guideHiddenAtom = atomWithStorage<Visibility>('guideHidden', {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user