diff --git a/src/client/theme-default/Layout.vue b/src/client/theme-default/Layout.vue index 52bb16b2..34bd53dd 100644 --- a/src/client/theme-default/Layout.vue +++ b/src/client/theme-default/Layout.vue @@ -9,13 +9,16 @@ import VPNav from './components/VPNav.vue' import VPSidebar from './components/VPSidebar.vue' import VPSkipLink from './components/VPSkipLink.vue' import { useData } from './composables/data' +import { useNav } from './composables/nav' import { useCloseSidebarOnEscape, useSidebar } from './composables/sidebar' const { isOpen: isSidebarOpen, open: openSidebar, - close: closeSidebar + close: closeSidebar, + isSidebarEnabled, } = useSidebar() +const { isScreenOpen } = useNav() const route = useRoute() watch(() => route.path, closeSidebar) @@ -33,9 +36,9 @@ provide('hero-image-slot-exists', heroImageSlotExists)