2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 23:00:56 +00:00

incr(ui): remove icons from settings

This commit is contained in:
18alantom 2022-10-12 12:29:15 +05:30
parent 8528f3024d
commit 3d168f23f6

View File

@ -2,27 +2,33 @@
<FormContainer :title="t`Settings`" :searchborder="false"> <FormContainer :title="t`Settings`" :searchborder="false">
<template #body> <template #body>
<!-- Icon Tab Bar --> <!-- Icon Tab Bar -->
<div class="flex justify-around mb-2 mt-4"> <div class="flex m-4 mb-0 gap-8">
<div <button
v-for="(tab, i) in tabs" v-for="(tab, i) in tabs"
:key="tab.label" :key="tab.label"
class=" class="
p-2
rounded-md
hover:bg-white hover:bg-white
flex flex-col flex flex-col
items-center items-center
justify-center justify-center
cursor-pointer cursor-pointer
text-sm
" "
:class="i === activeTab && 'text-blue-500'" :class="
i === activeTab &&
'text-blue-500 font-semibold border-b-2 border-blue-500'
"
:style="{
paddingBottom: i === activeTab ? 'calc(1rem - 2px)' : '1rem',
}"
@click="activeTab = i" @click="activeTab = i"
> >
<component :is="getIconComponent(tab)" :active="i === activeTab" /> {{ tab.label }}
<div class="mt-2 text-xs">{{ tab.label }}</div> </button>
</div>
</div> </div>
<div class="flex-1 overflow-y-auto">
<!-- Component -->
<div class="flex-1 overflow-y-auto custom-scroll">
<component :is="activeTabComponent" @change="handleChange" /> <component :is="activeTabComponent" @change="handleChange" />
</div> </div>
</template> </template>
@ -63,19 +69,16 @@ export default {
{ {
key: 'Invoice', key: 'Invoice',
label: t`Invoice`, label: t`Invoice`,
icon: 'invoice',
component: markRaw(TabInvoice), component: markRaw(TabInvoice),
}, },
{ {
key: 'General', key: 'General',
label: t`General`, label: t`General`,
icon: 'general',
component: markRaw(TabGeneral), component: markRaw(TabGeneral),
}, },
{ {
key: 'System', key: 'System',
label: t`System`, label: t`System`,
icon: 'system',
component: markRaw(TabSystem), component: markRaw(TabSystem),
}, },
], ],