diff --git a/frontend/components/global/Header.vue b/frontend/components/global/Header.vue index af89243..d94de13 100644 --- a/frontend/components/global/Header.vue +++ b/frontend/components/global/Header.vue @@ -3,41 +3,13 @@ import useGetAccount from "~/composables/api/account/useGetAccount"; import { useAuth } from "~/composables/api/auth/useAuth"; -import { useToast } from "~/composables/global/useToast"; import { NAV_LINKS } from "~/constants"; // state const route = useRoute(); -const router = useRouter(); -const { addToast } = useToast(); -const { logout, token } = useAuth(); - -const profileDropdownItems = ref([ - { - title: "ورود به پنل کاربری", - icon: "ci:profile", - onClick: () => router.push({ name: "profile" }), - }, - { - title: "خروج از حساب", - icon: "bi:arrow-bar-left", - itemClass: "!text-red-500", - iconClass: "**:stroke-red-500 **:fill-transparent", - onClick: () => { - logout(); - nextTick(() => { - addToast({ - message: "با موفقیت از حساب خارج شدید", - options: { - status: "success", - }, - }); - }); - }, - }, -]); +const { token } = useAuth(); // queries @@ -55,32 +27,26 @@ const isHomePage = computed(() => route.path === "/"); :class="isHomePage ? 'fixed top-0 left-0 z-999' : 'z-999'" >
- - - + + +