aboutsummaryrefslogtreecommitdiff
path: root/src/components/MenuIconItem.vue
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2023-05-28 23:13:24 +0200
committerGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-05-28 23:29:14 +0200
commit33c9b6643f58a6930043f460d5bfdca4bc1f7222 (patch)
treef313935e30f7b90ea16e564e7171e2e72319ce29 /src/components/MenuIconItem.vue
parent4d2b037dbe4e78aa90a4a6d9c7315dcf0a51fed9 (diff)
downloadit-tools-33c9b6643f58a6930043f460d5bfdca4bc1f7222.tar.gz
it-tools-33c9b6643f58a6930043f460d5bfdca4bc1f7222.tar.zst
it-tools-33c9b6643f58a6930043f460d5bfdca4bc1f7222.zip
chore(lint): switched to a better lint config
Diffstat (limited to 'src/components/MenuIconItem.vue')
-rw-r--r--src/components/MenuIconItem.vue16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/components/MenuIconItem.vue b/src/components/MenuIconItem.vue
index a08fe24..ed1b888 100644
--- a/src/components/MenuIconItem.vue
+++ b/src/components/MenuIconItem.vue
@@ -1,14 +1,7 @@
-<template>
- <div class="menu-icon-item">
- <n-icon :component="tool.icon" />
- <div v-if="tool.isNew" class="badge"></div>
- </div>
-</template>
-
<script setup lang="ts">
-import type { Tool } from '@/tools/tools.types';
import { useThemeVars } from 'naive-ui';
import { toRefs } from 'vue';
+import type { Tool } from '@/tools/tools.types';
const props = defineProps<{ tool: Tool }>();
const { tool } = toRefs(props);
@@ -16,6 +9,13 @@ const { tool } = toRefs(props);
const theme = useThemeVars();
</script>
+<template>
+ <div class="menu-icon-item">
+ <n-icon :component="tool.icon" />
+ <div v-if="tool.isNew" class="badge" />
+ </div>
+</template>
+
<style lang="less" scoped>
.menu-icon-item {
position: relative;