diff --git a/example/src/layout/Header.tsx b/example/src/layout/Header.tsx index 5d758f2..04c0938 100644 --- a/example/src/layout/Header.tsx +++ b/example/src/layout/Header.tsx @@ -6,10 +6,13 @@ import { ListItemButton, ListItemText } from '@mui/material' +import { Link, useLocation } from 'react-router-dom' const drawerWidth: number = 270 function Header() { + const { pathname } = useLocation() + return ( {routes.map(({ path, name }, index) => ( - +