mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
chore: remove useEditor
This commit is contained in:
@@ -28,12 +28,3 @@ export const useLoadPage = () => {
|
||||
|
||||
return currentPage?.pageId === pageId ? currentPage : null;
|
||||
};
|
||||
|
||||
export const useGoToPage = () => {
|
||||
const router = useRouter();
|
||||
const { currentWorkspaceId } = useAppState();
|
||||
|
||||
return (pageId: string) => {
|
||||
router.push(`/workspace/${currentWorkspaceId}/${pageId}`);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user