diff --git a/app/components/editor/main-menu.tsx b/app/components/editor/main-menu.tsx index e8a0b61..239ca14 100644 --- a/app/components/editor/main-menu.tsx +++ b/app/components/editor/main-menu.tsx @@ -73,7 +73,7 @@ const MainMenu = ({ triggerShortcut( EditorShortcuts.NEW_POST @@ -97,31 +97,32 @@ const MainMenu = ({ /> - - - - - View All Posts - - - - - + + triggerShortcut( + EditorShortcuts.VIEW_ALL_POSTS + ) + } + > + + + View All Posts + + + + @@ -162,37 +163,32 @@ const MainMenu = ({ /> - {/**/} - {/* */} - {/* */} - {/* Resume Previous Session*/} - {/* */} - {/**/} - - - - - View All Sessions - - - - - + + triggerShortcut( + EditorShortcuts.VIEW_ALL_WRITING_SESSIONS + ) + } + > + + + View All Sessions + + + + diff --git a/app/lib/providers/aurelius.tsx b/app/lib/providers/aurelius.tsx index afb038f..d49745d 100644 --- a/app/lib/providers/aurelius.tsx +++ b/app/lib/providers/aurelius.tsx @@ -146,11 +146,17 @@ const AureliusProvider = ({ children }: AureliusProviderProps) => { } const viewAllPosts = () => { - navigate(ROUTES.VIEW.POSTS) + setMainMenuOpen(() => false) + startTransition(() => { + navigate(ROUTES.VIEW.POSTS) + }) } const viewAllWritingSessions = () => { - navigate(ROUTES.VIEW.WRITING_SESSIONS) + setMainMenuOpen(() => false) + startTransition(() => { + navigate(ROUTES.VIEW.WRITING_SESSIONS) + }) } const data: AureliusProviderData = {