loading progressbar added to mobile menu

This commit is contained in:
parsa aghaei 2024-11-18 15:39:35 +03:30
parent efb8dcd60c
commit 0ce625022a
2 changed files with 28 additions and 12 deletions

View File

@ -104,19 +104,27 @@ export default function MobileMenu({ clicked, setClicked, dict }: propsType) {
</Link>
</nav>
{selectedLocale === "fa" ? (
<p
<Link
href="#"
className="block w-full whitespace-nowrap px-[14px] py-[10px] text-[21px] font-[400] hover:cursor-pointer hover:bg-slate-100"
onClick={() => handleLocaleChange("en")}
onClick={(e) => {
e.preventDefault();
handleLocaleChange("en");
}}
>
English
</p>
</Link>
) : (
<p
<Link
href="#"
className="block w-full whitespace-nowrap px-[14px] py-[10px] text-[21px] font-[400] hover:cursor-pointer hover:bg-slate-100"
onClick={() => handleLocaleChange("fa")}
onClick={(e) => {
e.preventDefault();
handleLocaleChange("fa");
}}
>
فارسی
</p>
</Link>
)}
</div>
</div>

View File

@ -81,19 +81,27 @@ export default function MobileMenu({ clicked, setClicked }: propsType) {
</Link>
</nav>
{selectedLocale === "fa" ? (
<p
<Link
href="#"
className="block w-full whitespace-nowrap px-[14px] py-[10px] text-[21px] font-[400] text-white hover:cursor-pointer"
onClick={() => handleLocaleChange("en")}
onClick={(e) => {
e.preventDefault();
handleLocaleChange("en");
}}
>
English
</p>
</Link>
) : (
<p
<Link
href="#"
className="block w-full whitespace-nowrap px-[14px] py-[10px] text-[21px] font-[400] text-white hover:cursor-pointer"
onClick={() => handleLocaleChange("fa")}
onClick={(e) => {
e.preventDefault();
handleLocaleChange("fa");
}}
>
فارسی
</p>
</Link>
)}
</div>
</div>