Skip to content

Commit e45ef22

Browse files
committed
fix(NavLink): rm default Icon name
1 parent 3d3c69e commit e45ef22

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

components/Icon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { computed } from "vue"
44
import icons from "@/assets/icons.json"
55
66
const props = defineProps({
7-
name: { type: String, required: true, default: "warning" },
7+
name: { type: String, required: true, default: "" },
88
size: { type: [String, Number], default: "16" },
99
color: { type: String, default: null },
1010
hoverColor: { type: String, required: false },

components/modules/navigation/NavLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const handleClick = () => {
8282
>
8383
<Flex align="center" gap="8">
8484
<Icon :name="link.icon" size="14" :color="!link.new ? 'secondary' : 'blue'" :class="$style.link_icon" />
85-
<Text size="13" weight="600" color="secondary">{{ link.name }}</Text>
85+
<Text size="13" weight="600" color="secondary">{{ link.name }} </Text>
8686
</Flex>
8787
8888
<Flex v-if="link.children" @click.prevent.stop="isExpanded = !isExpanded" :class="[$style.icon, $style.chevron]">

0 commit comments

Comments
 (0)