refactor menus with separated components

This commit is contained in:
Simon Vieille
2020-10-16 11:04:03 +02:00
parent ae148aba02
commit 7edd6d6d84
10 changed files with 270 additions and 104 deletions
+31
View File
@@ -0,0 +1,31 @@
<template>
<div class="side-menu-settings">
<a v-bind:href="href">
{{ label }}
<span class="avatardiv avatardiv-shown">
<img v-bind:src="avatar" v-bind:alt="name" v-bind:title="name">
</span>
</a>
</div>
</template>
<script>
export default {
name: 'SettingsButton',
props: {
label: {
type: String,
required: true
},
href: {
type: String,
required: true
},
avatar: {
type: String,
required: true
},
},
}
</script>