use h3 instead of trpc

This commit is contained in:
2023-12-09 21:26:41 +01:00
parent f0aa9ebdf4
commit ba067cf533
25 changed files with 1395 additions and 940 deletions

View File

@@ -7,21 +7,20 @@ export const useTalentsStore = defineStore(
const currentFavorite = ref<boolean>(false)
const getCategory = computed(() => currentCategory)
const isFavorite = computed(() => currentFavorite)
function setCategory(category: string) {
currentCategory.value = category
function setCategory(newCategory: string) {
currentCategory.value = newCategory
}
function setFavorite() {
const isFavorite = computed(() => currentFavorite)
function toggleFavorite() {
currentFavorite.value = !currentFavorite.value
}
return {
getCategory,
setCategory,
setFavorite,
isFavorite,
toggleFavorite,
}
},
{