Introduce component wrapper for svg icons

This commit is contained in:
Liyas Thomas
2020-08-17 16:07:36 +05:30
parent 54e06d26bc
commit 3924370b3e
39 changed files with 284 additions and 52 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div>
<button class="icon" @click="logout" v-close-popover>
<i class="material-icons">exit_to_app</i>
<exitToAppIcon class="material-icons" />
<span>{{ $t("logout") }}</span>
</button>
</div>
@@ -10,8 +10,10 @@
<script>
import firebase from "firebase/app"
import { fb } from "~/helpers/fb"
import exitToAppIcon from "~/static/icons/exit_to_app-24px.svg?inline"
export default {
components: { exitToAppIcon },
data() {
return {
fb,