fix: Remove redundant button on admin page header
This commit is contained in:
parent
d1ffe5ab11
commit
bb4ed111ef
1 changed files with 1 additions and 13 deletions
|
|
@ -39,7 +39,7 @@ export default function Header(): JSX.Element {
|
||||||
variant="outline"
|
variant="outline"
|
||||||
className=" text-sm font-medium text-muted-foreground transition-colors hover:text-primary cursor-pointer "
|
className=" text-sm font-medium text-muted-foreground transition-colors hover:text-primary cursor-pointer "
|
||||||
>
|
>
|
||||||
Main page
|
Home
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{autoLogin === false && (
|
{autoLogin === false && (
|
||||||
|
|
@ -55,18 +55,6 @@ export default function Header(): JSX.Element {
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{location.pathname === "/admin" && (
|
|
||||||
<Button
|
|
||||||
onClick={() => {
|
|
||||||
navigate("/");
|
|
||||||
}}
|
|
||||||
className="text-sm font-medium text-muted-foreground transition-colors hover:text-primary cursor-pointer"
|
|
||||||
variant="outline"
|
|
||||||
>
|
|
||||||
Home
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{isAdmin && !autoLogin && location.pathname !== "/admin" && (
|
{isAdmin && !autoLogin && location.pathname !== "/admin" && (
|
||||||
<Button
|
<Button
|
||||||
className="text-sm font-medium text-muted-foreground transition-colors hover:text-primary cursor-pointer"
|
className="text-sm font-medium text-muted-foreground transition-colors hover:text-primary cursor-pointer"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue