From af60384e747f90332fb2350f90e17b4b6e04cdee Mon Sep 17 00:00:00 2001 From: chip Date: Sun, 11 Oct 2020 02:11:47 +0200 Subject: [PATCH] Fix(Sellout): Fixed NavigationBar --- .../components/navigation/NavigationBar.tsx | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 phone/src/apps/sellout/components/navigation/NavigationBar.tsx diff --git a/phone/src/apps/sellout/components/navigation/NavigationBar.tsx b/phone/src/apps/sellout/components/navigation/NavigationBar.tsx new file mode 100644 index 0000000..3b13dd6 --- /dev/null +++ b/phone/src/apps/sellout/components/navigation/NavigationBar.tsx @@ -0,0 +1,48 @@ +import React, { useState } from 'react'; +import { makeStyles } from '@material-ui/core/styles'; +import { Link } from "react-router-dom"; +import { BottomNavigation, BottomNavigationAction } from "@material-ui/core"; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' +import { faHome } from '@fortawesome/free-solid-svg-icons' +import AddCircleIcon from '@material-ui/icons/AddCircle'; +import FaceIcon from '@material-ui/icons/Face'; + +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="/sellout" + /> + } + to="/sellout/new" + /> + } + to="/sellout/new" + /> + + ) +}