|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
|
import { useEffect, useState } from "react"; |
|
|
import { useEffect, useState } from "react"; |
|
|
import { MdOutlineSwitchAccount } from "react-icons/md"; |
|
|
import { MdOutlineSwitchAccount } from "react-icons/md"; |
|
|
|
|
|
import { IoClose, IoKeyOutline, IoTrashOutline } from "react-icons/io5"; |
|
|
import { getClientCookie, setClientCookie } from "@/lib/cookies"; |
|
|
import { getClientCookie, setClientCookie } from "@/lib/cookies"; |
|
|
import { setCachedMarriageEntryPath } from "@/lib/entry-route-cache"; |
|
|
import { setCachedMarriageEntryPath } from "@/lib/entry-route-cache"; |
|
|
|
|
|
|
|
|
@ -178,7 +179,7 @@ export function TokenSwitcher({ |
|
|
aria-label="تغییر توکن کاربر (تست)" |
|
|
aria-label="تغییر توکن کاربر (تست)" |
|
|
title="تغییر توکن (آقا / خانم)" |
|
|
title="تغییر توکن (آقا / خانم)" |
|
|
className={[ |
|
|
className={[ |
|
|
"inline-flex items-center gap-1.5 rounded-[15px] px-3 py-2 text-xs font-bold transition-all active:scale-95 shadow-md border border-slate-200/80 dark:border-slate-700/80 backdrop-blur-md", |
|
|
|
|
|
|
|
|
"fixed top-4 left-4 z-[99999] inline-flex items-center gap-1.5 rounded-[15px] px-3 py-2 text-xs font-bold transition-all active:scale-95 shadow-md border border-slate-200/80 dark:border-slate-700/80 backdrop-blur-md", |
|
|
variant === "transparent" |
|
|
variant === "transparent" |
|
|
? "bg-black/40 text-white hover:bg-black/50" |
|
|
? "bg-black/40 text-white hover:bg-black/50" |
|
|
: "bg-white/95 text-slate-800 hover:bg-white dark:bg-slate-900/95 dark:text-slate-100", |
|
|
: "bg-white/95 text-slate-800 hover:bg-white dark:bg-slate-900/95 dark:text-slate-100", |
|
|
|