Skip to content

Commit ce7fae9

Browse files
committed
refactor: simplify menu toggle logic in TheHeader component
- Replaced useToggle with a standard ref for managing menu state, improving clarity and reducing complexity. - Removed unused modal store reference to streamline the component's functionality.
1 parent 09e7dfc commit ce7fae9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

components/TheHeader.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ import TheCommandPalette from './TheCommandPalette.vue'
44
const appConfig = useAppConfig()
55
const route = useRoute()
66
7-
// Use a standard ref instead of useToggle
87
const menuOpen = ref(false)
98
function toggleMenu() {
109
menuOpen.value = !menuOpen.value
1110
}
1211
13-
// Use modal store for opening command palette
1412
const modalStore = useModalStore()
1513
1614
const navItems = [

0 commit comments

Comments
 (0)