Skip to content

Commit

Permalink
fix(anchorLinks): add useRuntimeConfig imports (#1605)
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd authored and farnabaz committed Oct 19, 2022
1 parent abe3984 commit 52fca14
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/components/Prose/ProseH1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</template>

<script setup lang="ts">
import { useRuntimeConfig } from '#imports'
defineProps<{ id: string }>()
const heading = 1
const { anchorLinks } = useRuntimeConfig().public.content
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/Prose/ProseH2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</template>

<script setup lang="ts">
import { useRuntimeConfig } from '#imports'
defineProps<{ id: string }>()
const heading = 2
const { anchorLinks } = useRuntimeConfig().public.content
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/Prose/ProseH3.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</template>

<script setup lang="ts">
import { useRuntimeConfig } from '#imports'
defineProps<{ id: string }>()
const heading = 3
const { anchorLinks } = useRuntimeConfig().public.content
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/Prose/ProseH4.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</template>

<script setup lang="ts">
import { useRuntimeConfig } from '#imports'
defineProps<{ id: string }>()
const heading = 4
const { anchorLinks } = useRuntimeConfig().public.content
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/Prose/ProseH5.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</template>

<script setup lang="ts">
import { useRuntimeConfig } from '#imports'
defineProps<{ id: string }>()
const heading = 5
const { anchorLinks } = useRuntimeConfig().public.content
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/Prose/ProseH6.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</template>

<script setup lang="ts">
import { useRuntimeConfig } from '#imports'
defineProps<{ id: string }>()
const heading = 6
const { anchorLinks } = useRuntimeConfig().public.content
Expand Down

0 comments on commit 52fca14

Please sign in to comment.