Make styling!!

This commit is contained in:
J Francisco Rader committed 2020-08-22 17:20:44 -03:00
1 parent 0bbd463c01
commit bc20bfac99
13 files changed
+115 -114

No files matched your search

+10 -13
View File
@@ -2,37 +2,34 @@ import React from "react";
import {
makeStyles,
BottomNavigation,
BottomNavigationAction,
BottomNavigationAction
} from "@material-ui/core";
import { grey } from "@material-ui/core/colors";
import KeyboardArrowLeftIcon from "@material-ui/icons/KeyboardArrowLeft";
import AppsIcon from "@material-ui/icons/Apps";
import { useHistory } from "react-router-dom";
const useStyles = makeStyles(() => ({
const useStyles = makeStyles((theme) => ({
root: {
backgroundColor: grey[800],
color: "white",
zIndex: 2
zIndex: 2,
backgroundColor: theme.palette.background.default,
},
icon: {
color: "white"
}
}));
export const NavigationBar = ({ notifications = [] }) => {
const classes = useStyles();
const history = useHistory()
const history = useHistory();
return (
<BottomNavigation
className={classes.root}
onChange={(_e, value) => value === 'back' ? history.goBack() : history.push('/')}
onChange={(_e, value) =>
value === "back" ? history.goBack() : history.push("/")
}
>
<BottomNavigationAction
label="Back"
value="back"
icon={<KeyboardArrowLeftIcon className={classes.icon} />}
icon={<KeyboardArrowLeftIcon />}
/>
<BottomNavigationAction
label="Home"