Skip to content

Commit

Permalink
docs: import @nuxt/ui-pro package to display version
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jan 30, 2024
1 parent f9042c4 commit f42bb95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/composables/useContentSource.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import pkg from '@nuxt/ui-pro/package.json'

export const useContentSource = () => {
const route = useRoute()
const router = useRouter()
Expand All @@ -22,7 +24,7 @@ export const useContentSource = () => {
name: 'pro',
label: 'nuxt/ui-pro',
icon: 'i-heroicons-cube',
suffix: `v${config.proVersion}`,
suffix: `v${pkg.version.split('-')[0]}`,
click: () => select({ name: 'pro' })
}, {
id: 'pro-edge',
Expand Down

0 comments on commit f42bb95

Please sign in to comment.