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"
|
||||
className=" text-sm font-medium text-muted-foreground transition-colors hover:text-primary cursor-pointer "
|
||||
>
|
||||
Main page
|
||||
Home
|
||||
</Button>
|
||||
)}
|
||||
{autoLogin === false && (
|
||||
|
|
@ -55,18 +55,6 @@ export default function Header(): JSX.Element {
|
|||
</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" && (
|
||||
<Button
|
||||
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