Skip to content

Commit

Permalink
Merge pull request #1402 from hackforla/1399-update-links-to-dashboar…
Browse files Browse the repository at this point in the history
…ds-on-header

Update links to dashboards
  • Loading branch information
joshuayhwu authored Oct 13, 2022
2 parents dcad691 + ceb96c8 commit 19178af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ const Header = () => {
horizontal: 'left',
}}
>
<Link to="/reports/dashboards/overview_combined">
<Link to="/reports/overview-combined">
<MenuItem onClick={handleClose}>
Overview
</MenuItem>
</Link>
<Link to="/reports/dashboards/nc_summary_comparison">
<Link to="/reports/nc-summary-comparison">
<MenuItem onClick={handleClose}>
Compare Two Neighborhoods
</MenuItem>
Expand Down
5 changes: 3 additions & 2 deletions client/components/main/Reports.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ const useStyles = makeStyles(theme => ({
},
}));

const REPORTS_PATH = '/reports/';

const Reports = () => {
const [isLoading, setIsLoading] = React.useState(true);
const classes = useStyles();

const url = process.env.REPORT_URL;
let reportPath = '/dashboards/overview';
const location = useLocation();
reportPath = location.pathname.slice(8);
const reportPath = location.pathname.slice(REPORTS_PATH.length - 1);
const reportRef = React.useRef(reportPath);

React.useEffect(() => {
Expand Down

0 comments on commit 19178af

Please sign in to comment.