From bc60fd3072268d90fb878b6f320000f01c57825d Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Tue, 8 Apr 2025 23:00:09 +0330 Subject: [PATCH] added mobile style --- .../profile/global/ProfileSidebar.vue | 31 ++++++++++++++++--- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/frontend/components/profile/global/ProfileSidebar.vue b/frontend/components/profile/global/ProfileSidebar.vue index 3b38430..237e644 100644 --- a/frontend/components/profile/global/ProfileSidebar.vue +++ b/frontend/components/profile/global/ProfileSidebar.vue @@ -3,6 +3,16 @@ import useGetAccount from "~/composables/api/account/useGetAccount"; +// types + +type Props = { + isShow: boolean; +}; + +// props + +defineProps(); + // state const route = useRoute(); @@ -37,6 +47,14 @@ const profileLinks = ref([ }, ]); +// queries + +const { data: account, suspense } = useGetAccount(); + +await suspense(); + +// methods + const isLinkActive = (link: any) => { if (link.matchPattern) { return link.matchPattern.test(route.name); @@ -45,15 +63,16 @@ const isLinkActive = (link: any) => { } }; -// queries +// inject -const { data: account, suspense } = useGetAccount(); - -await suspense(); +const toggleSidebar = inject("toggleSidebar");