mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-25 01:10:36 +01:00
use h3 instead of trpc
This commit is contained in:
@@ -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,
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user