Skip to content

Commit

Permalink
Temporarily remove start page feature until Menu is refactored (#249)
Browse files Browse the repository at this point in the history
* Temporarily remove start page feature until `Menu` is refactored
  • Loading branch information
rubenthoms authored Sep 7, 2022
1 parent 49dfd5e commit 292af0a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions react/src/lib/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ export const Menu: React.FC<MenuProps> = (props) => {
setFirstPage(getStartPage(props.navigationItems));
}, []);

React.useEffect(() => {
if (window.location.pathname === "/" && firstPage) {
window.location.pathname = firstPage.href;
}
}, [firstPage]);

const [menuWidth, setMenuWidth] = React.useState<number>(
getNavigationMaxWidth(props.navigationItems) + 40
);
Expand Down

0 comments on commit 292af0a

Please sign in to comment.