From 0a13918a45765e72725e5399470180db1591f63c Mon Sep 17 00:00:00 2001 From: chip Date: Mon, 26 Oct 2020 15:33:09 +0100 Subject: [PATCH] feat(bank/nui): added navigation bar --- .../components/navigation/NavigationBar.tsx | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 phone/src/apps/bank/components/navigation/NavigationBar.tsx diff --git a/phone/src/apps/bank/components/navigation/NavigationBar.tsx b/phone/src/apps/bank/components/navigation/NavigationBar.tsx new file mode 100644 index 0000000..5bcd85b --- /dev/null +++ b/phone/src/apps/bank/components/navigation/NavigationBar.tsx @@ -0,0 +1,43 @@ +import React, { useState } from 'react' + +import { Link } from "react-router-dom"; +import { BottomNavigation, BottomNavigationAction } from "@material-ui/core"; +import { makeStyles } from "@material-ui/core/styles"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { faHome } from "@fortawesome/free-solid-svg-icons"; +import AddCircleIcon from "@material-ui/icons/AddCircle"; + +const useStyles = makeStyles((theme) => ({ + root: { + width: "100%", + }, + icon: { + color: "#f44336", + }, +})) + +export const NavigationBar = () => { + const classes = useStyles(); + const [activePage, setActivePage] = useState(0) + return ( + { + setActivePage(newPage); + }} + showLabels + className={classes.root} + > + } + to="/bank" + /> + } + to="/bank/account" + /> + + ) +}