changed directory

This commit is contained in:
Mamalizz
2025-03-15 02:27:40 +03:30
parent d3dc4c6651
commit 3f6644baaa
4 changed files with 30 additions and 1 deletions
@@ -22,6 +22,7 @@ const profileLinks = ref([
icon: "bi:cart",
title: "خرید ها و سفارش ها",
path: { name: "profile-purchases-and-orders" },
matchPattern: /^profile-purchases-and-orders/,
},
{
icon: "bi:ticket",
@@ -29,6 +30,11 @@ const profileLinks = ref([
path: { name: "profile-tickets" },
matchPattern: /^profile-ticket/,
},
{
icon: "bi:bell",
title: "اعلانات",
path: { name: "profile-notifications" },
},
]);
const isLinkActive = (link: any) => {
@@ -88,7 +94,7 @@ await suspense();
:class="
isLinkActive(link)
? 'bg-black text-slate-100 **:fill-slate-100'
: '**:fill-black'
: '**:fill-black hover:bg-gray-200'
"
class="flex items-center justify-between transition-all rounded-lg py-4 px-3"
>
@@ -101,6 +107,29 @@ await suspense();
<Icon name="bi:chevron-left" class="transition-all" />
</NuxtLink>
<LogoutModal>
<template #trigger>
<button
class="w-full flex items-center cursor-pointer justify-between transition-all rounded-lg py-4 px-3 hover:bg-danger-100 text-danger-500 **:fill-danger-100"
>
<span class="flex-center gap-3">
<div class="size-5 flex-center">
<Icon
name="bi:arrow-bar-right"
class="**:fill-danger-500"
/>
</div>
<span class="text-sm"> خروج از حساب </span>
</span>
<Icon
name="bi:chevron-left"
class="transition-all **:fill-danger-500"
/>
</button>
</template>
</LogoutModal>
</div>
</div>
</template>