Skip to content

Commit

Permalink
Improve navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
polarker committed Aug 29, 2023
1 parent 030bd12 commit 2b46044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AppNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const useStyles = createStyles((theme) => ({
export function NavbarNested() {
const { classes } = useStyles()
const location = useLocation()
const [active, setActive] = useState<string>(mockdata[0].label)
const [active, setActive] = useState<string>(location.pathname)

useEffect(() => {
setActive(location.pathname)
Expand Down

0 comments on commit 2b46044

Please sign in to comment.