Feat: Add button on admin page to return to main page

This commit is contained in:
igorrCarvalho 2023-08-22 14:33:06 -03:00
commit 0c0d8cfdb3

View file

@ -27,6 +27,17 @@ export default function Header(): JSX.Element {
<Link to="/">
<span className="ml-4 text-2xl"></span>
</Link>
{location.pathname === "/admin" && (
<Button
onClick={() => {
navigate("/");
}}
variant="outline"
className=""
>
Main page
</Button>
)}
{autoLogin === false && (
<Button
onClick={() => {