Skip to content

Commit

Permalink
fix active classname in sidebar setting page
Browse files Browse the repository at this point in the history
Signed-off-by: kypham <[email protected]>
  • Loading branch information
hongky-1994 committed Jan 23, 2025
1 parent 12145cf commit 82c5e98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/settings-page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
makeStyles,
} from "@material-ui/core";
import { FC, memo } from "react";
import { NavLink, Outlet } from "react-router-dom";
import { NavLink, Outlet, useLocation } from "react-router-dom";
import {
PAGE_PATH_SETTINGS_API_KEY,
PAGE_PATH_SETTINGS_PIPED,
Expand Down Expand Up @@ -56,6 +56,7 @@ const MENU_ITEMS = [

export const SettingsIndexPage: FC = memo(function SettingsIndexPage() {
const classes = useStyles();
const location = useLocation();
return (
<div className={classes.root}>
<Drawer
Expand Down

0 comments on commit 82c5e98

Please sign in to comment.