mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
Make styling!!
This commit is contained in:
1 parent
0bbd463c01
commit
bc20bfac99
13 files changed
+115
-114
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user