update
This commit is contained in:
@@ -14,12 +14,11 @@ import ListItemIcon from "@material-ui/core/ListItemIcon";
|
||||
import HomeIcon from "@material-ui/icons/Home";
|
||||
import MailIcon from "@material-ui/icons/Mail";
|
||||
import { logout } from "../actions";
|
||||
import { showRegulamin } from "../actions/toggles.js";
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import ButtonSecondary from "./Input/ButtonSecondary";
|
||||
import ListSubheader from "@material-ui/core/ListSubheader";
|
||||
import { useHistory } from "react-router-dom";
|
||||
import GavelIcon from "@material-ui/icons/Gavel";
|
||||
import FingerprintIcon from '@material-ui/icons/Fingerprint';
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
paper: {
|
||||
@@ -56,8 +55,8 @@ export default function TopBar() {
|
||||
case "kontakt":
|
||||
history.push("/kontakt");
|
||||
break;
|
||||
case "regulamin":
|
||||
dispatch(showRegulamin());
|
||||
case "privacy":
|
||||
history.push("/privacy");
|
||||
break;
|
||||
case "register":
|
||||
history.push("/register");
|
||||
@@ -137,11 +136,11 @@ export default function TopBar() {
|
||||
</ListItemIcon>
|
||||
<ListItemText primary="Kontakt" />
|
||||
</ListItem>
|
||||
<ListItem button onClick={() => handleClick("regulamin")}>
|
||||
<ListItem button onClick={() => handleClick("privacy")}>
|
||||
<ListItemIcon>
|
||||
<GavelIcon />
|
||||
<FingerprintIcon />
|
||||
</ListItemIcon>
|
||||
<ListItemText primary="Regulamin" />
|
||||
<ListItemText primary="Polityka prywatności" />
|
||||
</ListItem>
|
||||
<Divider />
|
||||
<ListItem>
|
||||
|
||||
Reference in New Issue
Block a user