fix: player throws error whenever settings panel is openned

This commit is contained in:
--remove-section committed 2026-10-20 18:08:50 +05:30
1 parent 0c50acddd9
commit 2d5f49c32e
11 files changed
+113 -115

No files matched your search

@@ -1,5 +1,6 @@
import {
MenuItem,
MenuList,
Popover,
Switch,
TextField,
@@ -144,16 +145,18 @@ const VideoPlayerSettingsMenu = ({
</MenuItem>
))}
</TextField>
<MenuItem onClick={toggleShowStatsForNerds}>
<Typography
sx={{
flexGrow: 1,
}}
>
Stats for Nerds
</Typography>
<Switch checked={showStatsForNerds} />
</MenuItem>
<MenuList disablePadding>
<MenuItem onClick={toggleShowStatsForNerds}>
<Typography
sx={{
flexGrow: 1,
}}
>
Stats for Nerds
</Typography>
<Switch checked={showStatsForNerds} />
</MenuItem>
</MenuList>
</Popover>
);
};