mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Add: Simcard, simcardService + Add: nuiEvent, nuiService
This commit is contained in:
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>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user