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>
|
||||
{location?.pathname === "/profile" ? (
|
||||
<Button onClick={() => navigate("/")}>فروشگاه</Button>
|
||||
<Button onClick={() => navigate("/configs/3")}>فروشگاه</Button>
|
||||
) : auth ? (
|
||||
<Button onClick={() => navigate("/profile")}>صفحه کاربری</Button>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user