refactor: enable new tab component

This commit is contained in:
liyasthomas
2022-03-24 19:45:32 +05:30
committed by Andrew Bastin
parent f3f4420d6d
commit a03f31a526
8 changed files with 85 additions and 32 deletions

View File

@@ -77,12 +77,8 @@
<FirebaseLogout outline />
</div>
</div>
<SmartTabs>
<SmartTab
:id="'sync'"
:label="t('settings.account')"
:selected="true"
>
<SmartTabs v-model="selectedProfileTab">
<SmartTab :id="'sync'" :label="t('settings.account')">
<section class="p-4">
<h4 class="font-semibold text-secondaryDark">
{{ t("settings.profile") }}
@@ -211,6 +207,10 @@ import {
} from "~/helpers/utils/composables"
import { toggleSetting, useSetting } from "~/newstore/settings"
type ProfileTabs = "sync" | "teams"
const selectedProfileTab = ref<ProfileTabs>("sync")
const t = useI18n()
const toast = useToast()