feat: pass event prop to handle update tab change

This commit is contained in:
amhsirak
2024-12-08 21:21:47 +05:30
parent 3d619ad9b9
commit 6a2222e6b9

View File

@@ -53,7 +53,7 @@ export const NavBar: React.FC<NavBarProps> = ({ recordingName, isRecording }) =>
setTab(0); // Reset tab to the first tab
};
const handleUpdateTabChange = (newValue: any) => {
const handleUpdateTabChange = (event: React.SyntheticEvent, newValue: number) => {
setTab(newValue);
};