fix: hook useRecentlyViewed (#1430)

Co-authored-by: JimmFly <yangjinfei001@gmail.com>
This commit is contained in:
Himself65
2023-03-09 02:53:56 -06:00
committed by GitHub
parent 423ca95298
commit b3659d6a95
4 changed files with 17 additions and 12 deletions

View File

@@ -60,7 +60,7 @@ export const workspacesAtom = atom<Promise<RemWorkspace[]>>(async get => {
return workspaces.filter(workspace => workspace !== null) as RemWorkspace[];
});
type View = { title: string; id: string; mode: 'page' | 'edgeless' };
type View = { id: string; mode: 'page' | 'edgeless' };
export type WorkspaceRecentViews = Record<string, View[]>;