feat: Use Fluent SVG icons on the dashboard (#3482)

This commit is contained in:
Pranav Raj S
2021-11-30 21:03:18 -08:00
committed by GitHub
parent 98be3b33c1
commit c792cfc0be
151 changed files with 613 additions and 617 deletions

View File

@@ -1,5 +1,11 @@
<template>
<i v-if="showWrap" :class="className">{{ iconContent }}</i>
<i v-if="showEmoji" :class="className">{{ iconContent }}</i>
<fluent-icon
v-else-if="showIcon"
:size="iconSize"
:icon="icon"
:class="className"
/>
</template>
<script>
@@ -9,6 +15,7 @@ import { mapGetters } from 'vuex';
export default {
props: {
icon: { type: String, default: '' },
iconSize: { type: [Number, String], default: 20 },
emoji: { type: String, default: '' },
},
computed: {
@@ -23,9 +30,6 @@ export default {
showIcon() {
return !this.showEmoji && this.icon;
},
showWrap() {
return this.showEmoji || this.showIcon;
},
iconContent() {
return this.showEmoji ? this.emoji : '';
},