added bottom navigator
This commit is contained in:
parent
3f96724422
commit
7ee06c4e19
4 changed files with 223 additions and 16 deletions
|
|
@ -6,6 +6,8 @@ import { useAuth0 } from "@auth0/auth0-react";
|
|||
import Teams from "pages/Teams";
|
||||
import SideNavigator from "./SideNavigator";
|
||||
import Users from "pages/Users";
|
||||
import { useMobile } from "hooks";
|
||||
import BottomNavigator from "./BottomNavigator";
|
||||
|
||||
interface Props {
|
||||
open: boolean,
|
||||
|
|
@ -17,6 +19,7 @@ export default function Router(props: Props) {
|
|||
|
||||
const {open, onOpen, onClose} = props;
|
||||
const { isAuthenticated, loginWithRedirect, isLoading } = useAuth0()
|
||||
const isMobile = useMobile()
|
||||
|
||||
const hello = () => {
|
||||
return (
|
||||
|
|
@ -62,6 +65,7 @@ export default function Router(props: Props) {
|
|||
<Route path="contact" element={<Contact />} />
|
||||
<Route path="*" element={<NoPage />} /> */}
|
||||
</Routes>
|
||||
{isMobile && <BottomNavigator openSide={onOpen} sideIsOpen={open} />}
|
||||
</BrowserRouter>
|
||||
</Suspense>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue