Refactor: Update Navbar component to navigate to specific configuration page
This commit is contained in:
@@ -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>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user