fix: navigate to new value

This commit is contained in:
amhsirak
2025-01-09 23:14:03 +05:30
parent 200cc8e3fc
commit c76be5892e

View File

@@ -20,6 +20,7 @@ export const MainMenu = ({ value = 'recordings', handleChangeContent }: MainMenu
const navigate = useNavigate();
const handleChange = (event: React.SyntheticEvent, newValue: string) => {
navigate(`/${newValue}`);
handleChangeContent(newValue);
};