Skip to content

Commit

Permalink
docs: import $ui from useNuxtApp
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Aug 4, 2024
1 parent 7e37668 commit 606c7b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
</template>

<script setup lang="ts">
const { $ui } = useNuxtApp()
const links = [{
icon: 'i-simple-icons-figma',
label: 'Figma Kit',
Expand Down
1 change: 1 addition & 0 deletions docs/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ defineProps<{
}>()
const route = useRoute()
const { $ui } = useNuxtApp()
const { metaSymbol } = useShortcuts()
const nav = inject<Ref<NavItem[]>>('navigation')
Expand Down
1 change: 1 addition & 0 deletions docs/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ const sectionRef = ref()
const demoRef = ref(null)
const start = ref(0)

const { $ui } = useNuxtApp()
const { height } = useElementSize(demoRef)
const { top } = useElementBounding(sectionRef)
const { y } = useWindowScroll()
Expand Down

0 comments on commit 606c7b6

Please sign in to comment.