diff --git a/src/views/Inspirations.vue b/src/views/Inspirations.vue index e6e5f73..5f0fb6c 100644 --- a/src/views/Inspirations.vue +++ b/src/views/Inspirations.vue @@ -62,21 +62,23 @@ const tabs = computed(() => { id: "all", icon: null, count: null, - isActive: currentTab.value === "all" + isActive: currentTab.value === "all", }, { label: "Mes Favoris", id: "favorites", icon: "favorite", count: 6, // TODO: dynamiser (favorites.count) - isActive: currentTab.value === "favorites" - } + isActive: currentTab.value === "favorites", + }, ]; }); const currentInspiration = data.inspirations[0]; -function toggleFavorite() {} +function changeTab(newValue) { + currentTab.value = newValue; +}