Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Request Type Map report option to header #1068

Merged
merged 1 commit into from
Apr 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions client/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ import {
} from '@material-ui/core';

const useStyles = makeStyles(theme => ({
MuiMenuItemButton: {
color: 'white',
},
appBar: {
height: theme.header.height,
backgroundColor: theme.palette.primary.main,
},
link: {
color: 'white',
textDecoration: 'none',
},
button: {
textTransform: 'none',
fontFamily: 'Roboto',
Expand Down Expand Up @@ -52,9 +53,9 @@ const Header = () => {
<AppBar position="static" className={classes.appBar}>
<Toolbar>
<Typography variant="h1" className={classes.title}>
<Link to="/" style={{ textDecoration: 'none', color: 'white' }}>311DATA</Link>
<Link to="/" className={classes.link}>311DATA</Link>
</Typography>
<Link to="/map">
<Link className={classes.link} to="/map">
<Button className={classes.button}>Map</Button>
</Link>
<Button
Expand All @@ -76,37 +77,42 @@ const Header = () => {
horizontal: 'left',
}}
>
<Link to="/reports/dashboards/overview">
<Link to="/reports/dashboards/overview" className={classes.link}>
<MenuItem onClick={handleClose} button className={classes.button}>
Overview
</MenuItem>
</Link>
<Link to="/reports/dashboards/recent">
<Link to="/reports/dashboards/recent" className={classes.link}>
<MenuItem onClick={handleClose} button className={classes.button}>
Recent
</MenuItem>
</Link>
<Link to="/reports/dashboards/neighborhood">
<Link to="/reports/dashboards/neighborhood" className={classes.link}>
<MenuItem onClick={handleClose} button className={classes.button}>
Neighborhood
</MenuItem>
</Link>
<Link to="/reports/dashboards/neighborhood_recent">
<Link to="/reports/dashboards/neighborhood_recent" className={classes.link}>
<MenuItem onClick={handleClose} button className={classes.button}>
Neighborhood Recent
</MenuItem>
</Link>
<Link to="/reports/dashboards/types_map" className={classes.link}>
<MenuItem onClick={handleClose} button className={classes.button}>
Request Type Map
</MenuItem>
</Link>
</Menu>
<Link to="/faqs">
<Link to="/faqs" className={classes.link}>
<Button className={classes.button}>FAQ</Button>
</Link>
<Link to="/blog">
<Link to="/blog" className={classes.link}>
<Button className={classes.button}>Blog</Button>
</Link>
<Link to="/privacy">
<Link to="/privacy" className={classes.link}>
<Button className={classes.button}>Privacy</Button>
</Link>
<Link to="/contact">
<Link to="/contact" className={classes.link}>
<Button className={classes.button}>Contact</Button>
</Link>
</Toolbar>
Expand Down