From fa016fd7ab68f400cfe5130dcb87c4f598a9b853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aron=20Sch=C3=BCler?= Date: Fri, 26 Jan 2024 17:28:49 +0100 Subject: [PATCH] feat: add signout to mobile --- src/components/TopBar.vue | 12 ++---------- src/components/UserMenu.vue | 16 +++++++++++++++- src/components/user.ts | 5 +++++ 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/components/TopBar.vue b/src/components/TopBar.vue index 6bb2a59..e5fefb9 100644 --- a/src/components/TopBar.vue +++ b/src/components/TopBar.vue @@ -2,19 +2,11 @@ import { Disclosure, DisclosureButton, DisclosurePanel } from "@headlessui/vue"; import { MagnifyingGlassIcon, UserCircleIcon } from "@heroicons/vue/20/solid"; import { Bars3Icon, BellIcon, XMarkIcon } from "@heroicons/vue/24/outline"; -import { getAuth } from "firebase/auth"; -import { app } from "@/firebase"; - -import { userNavigation, useUser } from "./user"; +import { signOut, userNavigation, useUser } from "./user"; import UserMenu from "./UserMenu.vue"; const { user } = useUser(); - -const signOut = async () => { - const auth = getAuth(app); - await auth.signOut(); -};