Add: Simcard, simcardService + Add: nuiEvent, nuiService

This commit is contained in:
J Francisco Rader committed 2020-08-23 17:32:01 -03:00
1 parent ec37fcde46
commit f862100d4b
14 files changed
+101 -5

No files matched your search

@@ -0,0 +1,44 @@
import React from "react";
import {
makeStyles,
BottomNavigation,
BottomNavigationAction,
} from "@material-ui/core";
import KeyboardArrowLeftIcon from "@material-ui/icons/KeyboardArrowLeft";
import AppsIcon from "@material-ui/icons/Apps";
import PhoneIcon from "@material-ui/icons/Phone";
import { useHistory } from "react-router-dom";
const useStyles = makeStyles((theme) => ({
root: {
zIndex: 2,
backgroundColor: theme.palette.background.default,
},
}));
export const Navigation = () => {
const classes = useStyles();
const history = useHistory();
return (
<BottomNavigation
className={classes.root}
onChange={(_e, value) => value()}
>
<BottomNavigationAction
label="Phone"
value={() => history.push("/phone")}
icon={<PhoneIcon className={classes.icon} />}
/>
<BottomNavigationAction
label="Home"
value={() => history.push("/")}
icon={<AppsIcon className={classes.icon} />}
/>
<BottomNavigationAction
label="Back"
value={() => history.goBack()}
icon={<KeyboardArrowLeftIcon />}
/>
</BottomNavigation>
);
};