mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 08:09:52 +08:00
fix: page meta is undefined (#2734)
This commit is contained in:
@@ -80,21 +80,6 @@ export const openDisableCloudAlertModalAtom = atom(false);
|
||||
|
||||
export { workspacesAtom } from './root';
|
||||
|
||||
type View = {
|
||||
id: string;
|
||||
/**
|
||||
* @deprecated Use `mode` from `useWorkspacePreferredMode` instead.
|
||||
*/
|
||||
mode: 'page' | 'edgeless';
|
||||
};
|
||||
|
||||
export type WorkspaceRecentViews = Record<string, View[]>;
|
||||
|
||||
export const workspaceRecentViewsAtom = atomWithStorage<WorkspaceRecentViews>(
|
||||
'recentViews',
|
||||
{}
|
||||
);
|
||||
|
||||
type PageMode = 'page' | 'edgeless';
|
||||
type PageLocalSetting = {
|
||||
mode: PageMode;
|
||||
|
||||
Reference in New Issue
Block a user