feat: pass event prop to handle update tab change
This commit is contained in:
@@ -53,7 +53,7 @@ export const NavBar: React.FC<NavBarProps> = ({ recordingName, isRecording }) =>
|
|||||||
setTab(0); // Reset tab to the first tab
|
setTab(0); // Reset tab to the first tab
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleUpdateTabChange = (newValue: any) => {
|
const handleUpdateTabChange = (event: React.SyntheticEvent, newValue: number) => {
|
||||||
setTab(newValue);
|
setTab(newValue);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user