Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
chore: update useNavigation import
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook committed Jan 5, 2024
1 parent a7b4d99 commit ed2fc37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .docs/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const navigation = inject<Ref<NavItem[]>>('navigation')
const route = useRoute()
const { navPageFromPath } = useContentHelpers()
const { headerLinks } = useNavigation()
const { headerLinks } = useNavigationMotion()
const links = computed(() => headerLinks.value.find(link => link.to === '/motion')?.children ?? [])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ function _useNavigation() {
}
}

export const useNavigation = createSharedComposable(_useNavigation)
export const useNavigationMotion = createSharedComposable(_useNavigation)
2 changes: 1 addition & 1 deletion .docs/layouts/motion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const navigation = inject<Ref<NavItem[]>>('navigation')
const route = useRoute()
const { navPageFromPath } = useContentHelpers()
const { headerLinks } = useNavigation()
const { headerLinks } = useNavigationMotion()
const links = computed(() =>
headerLinks.value.find(link => link.to === '/motion')?.children.map(link => ({
Expand Down

0 comments on commit ed2fc37

Please sign in to comment.