Refactor: Update Navbar component to navigate to specific configuration page

This commit is contained in:
ALi Josheghani
2024-09-16 12:42:20 +03:30
parent 7f0d184e71
commit 44c3528d15

View File

@@ -47,7 +47,7 @@ const Navbar = ({ extra }: { extra?: string }) => {
})} })}
</div> </div>
{location?.pathname === "/profile" ? ( {location?.pathname === "/profile" ? (
<Button onClick={() => navigate("/")}>فروشگاه</Button> <Button onClick={() => navigate("/configs/3")}>فروشگاه</Button>
) : auth ? ( ) : auth ? (
<Button onClick={() => navigate("/profile")}>صفحه کاربری</Button> <Button onClick={() => navigate("/profile")}>صفحه کاربری</Button>
) : ( ) : (