Improve talents category selector style

This commit is contained in:
2023-09-04 12:32:41 +02:00
parent 774ccf75fb
commit 7bc5b3b112
3 changed files with 40 additions and 14 deletions

View File

@@ -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,
}
}