loading progressbar added to mobile menu
This commit is contained in:
parent
efb8dcd60c
commit
0ce625022a
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user