aboutsummaryrefslogtreecommitdiff
path: root/src/components/FavoriteButton.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/FavoriteButton.vue')
-rw-r--r--src/components/FavoriteButton.vue27
1 files changed, 11 insertions, 16 deletions
diff --git a/src/components/FavoriteButton.vue b/src/components/FavoriteButton.vue
index ef180a6..c3f0aaa 100644
--- a/src/components/FavoriteButton.vue
+++ b/src/components/FavoriteButton.vue
@@ -1,6 +1,4 @@
<script setup lang="ts">
-import { FavoriteFilled } from '@vicons/material';
-
import { useToolStore } from '@/tools/tools.store';
import type { Tool } from '@/tools/tools.types';
@@ -26,18 +24,15 @@ function toggleFavorite(event: MouseEvent) {
</script>
<template>
- <n-tooltip trigger="hover">
- <template #trigger>
- <c-button
- variant="text"
- circle
- :type="buttonType"
- :style="{ opacity: isFavorite ? 1 : 0.2 }"
- @click="toggleFavorite"
- >
- <n-icon :component="FavoriteFilled" />
- </c-button>
- </template>
- {{ isFavorite ? 'Remove from favorites' : 'Add to favorites' }}
- </n-tooltip>
+ <c-tooltip :tooltip="isFavorite ? 'Remove from favorites' : 'Add to favorites' ">
+ <c-button
+ variant="text"
+ circle
+ :type="buttonType"
+ :style="{ opacity: isFavorite ? 1 : 0.2 }"
+ @click="toggleFavorite"
+ >
+ <icon-mdi-heart />
+ </c-button>
+ </c-tooltip>
</template>