From 58303132176054e5c8d8b7cdd0c1c26dfbf9587e Mon Sep 17 00:00:00 2001 From: Artsiom Kharytonchyk Date: Thu, 18 Apr 2024 20:22:55 +0300 Subject: [PATCH] chore: add navigation controls --- src/components/AuthHeader.tsx | 72 +++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 28 deletions(-) diff --git a/src/components/AuthHeader.tsx b/src/components/AuthHeader.tsx index 7d35d05..2b14de9 100644 --- a/src/components/AuthHeader.tsx +++ b/src/components/AuthHeader.tsx @@ -1,5 +1,9 @@ -import { Settings } from "@mui/icons-material"; +import { Biotech, Dashboard, Settings } from "@mui/icons-material"; import { Box, Avatar, Chip, Button, Tooltip } from "@mui/material"; +import BottomNavigation from "@mui/material/BottomNavigation"; +import BottomNavigationAction from "@mui/material/BottomNavigationAction"; +import React from "react"; +import { useLocation, useNavigate } from "react-router-dom"; export type AuthHeaderProps = { user: { @@ -16,34 +20,46 @@ export const AuthHeader: React.FC = ({ logOut, setOpenSettings, }) => { + const location = useLocation(); + const navigate = useNavigate(); + return ( - - - window.open(user?.url, "_blank")} - /> - - - + + window.open(user?.url, "_blank")} + /> + + + + ); };