Skip to content

Commit

Permalink
docs(ComponentCode): handle metas for prose components
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jan 9, 2025
1 parent 30ba53e commit af736b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/app/components/content/ComponentCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const route = useRoute()
const { $prettier } = useNuxtApp()

const camelName = camelCase(props.slug ?? route.params.slug?.[route.params.slug.length - 1] ?? '')
const name = `U${upperFirst(camelName)}`
const name = `${props.prose ? 'Prose' : 'U'}${upperFirst(camelName)}`
const component = defineAsyncComponent(() => {
if (props.pro) {
if (props.prefix) {
Expand Down

0 comments on commit af736b0

Please sign in to comment.