fix: hide some account preferences sections

This commit is contained in:
Antonella Sgarlatta
2021-10-13 11:23:58 -03:00
parent a66ca97418
commit 99b84e3cda
4 changed files with 16 additions and 5 deletions

View File

@@ -75,7 +75,9 @@ const PreferencesCanvas: FunctionComponent<
export const PreferencesView: FunctionComponent<PreferencesProps> = observer(
(props) => {
const menu = useMemo(() => new PreferencesMenu(), []);
const menu = useMemo(() => new PreferencesMenu(props.appState.enableUnfinishedFeatures), [
props.appState.enableUnfinishedFeatures
]);
useEffect(() => {
menu.selectPane(props.appState.preferences.currentPane);