Skip to content

Commit

Permalink
chore: map func
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonYong committed May 12, 2024
1 parent 99f819a commit b49ea6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/hooks/docs/.vitepress/theme/home/TeamMember.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@
<a
v-for="f of data.functions"
:key="f"
:href="isProduction ? `/docs/hooks/${f}/` : `/${f}/`"
:href="
isProduction
? `/docs/hooks/${data?.functionsMap?.[f] ?? f}/`
: `/${data?.functionsMap?.[f] ?? f}/`
"
target="_blank"
>
<code>{{ f }}</code>
Expand Down
4 changes: 4 additions & 0 deletions packages/hooks/docs/contributors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface CoreTeam {
description: string
packages?: string[]
functions?: string[]
functionsMap?: Record<string, string>
}

const contributorsAvatars: Record<string, string> = {}
Expand Down Expand Up @@ -56,6 +57,9 @@ const coreTeamMembers: CoreTeam[] = [
github: 'Noobbbbbbb',
description: '',
functions: ['useFullscreen'],
functionsMap: {
useFullscreen: 'useFull'
}
}
]
// .sort(
Expand Down

0 comments on commit b49ea6f

Please sign in to comment.