mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-02 04:01:43 +02:00
web: hide setting group if all settings under it are hidden
This commit is contained in:
@@ -437,7 +437,9 @@ function SettingsGroupComponent(props: { item: SettingsGroup }) {
|
||||
};
|
||||
}, [onStateChange]);
|
||||
|
||||
if (item.isHidden?.()) return null;
|
||||
const allHidden = item.settings.every((s) => s.isHidden?.());
|
||||
if (item.isHidden?.() || allHidden) return null;
|
||||
|
||||
return (
|
||||
<Flex
|
||||
sx={{
|
||||
|
||||
Reference in New Issue
Block a user