mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-22 07:50:33 +01:00
Improve talents category selector style
This commit is contained in:
@@ -20,6 +20,10 @@ export async function useTalents() {
|
||||
await refreshTalents()
|
||||
}
|
||||
|
||||
function isCategory(category: string) {
|
||||
return getCategory.value === category
|
||||
}
|
||||
|
||||
const {
|
||||
data: getCategories,
|
||||
} = await $trpc.talents.getCategories.useQuery()
|
||||
@@ -31,5 +35,6 @@ export async function useTalents() {
|
||||
switchCategory,
|
||||
toggleFavorite,
|
||||
pending,
|
||||
isCategory,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user