feat: privacy prefs (#935)

* chore: move all components into Components dir with pascal case

* feat: privacy prefs

* chore: upgrade deps
This commit is contained in:
Mo
2022-03-17 12:19:07 -05:00
committed by GitHub
parent c29e45795d
commit fb9bd37d72
10 changed files with 273 additions and 88 deletions

View File

@@ -3,6 +3,7 @@ import { AppState } from '@/ui_models/app_state';
import { FunctionComponent } from 'preact';
import { PreferencesPane } from '../components';
import { Encryption, PasscodeLock, Protections } from './security-segments';
import { Privacy } from './security-segments/Privacy';
import { TwoFactorAuthWrapper } from './two-factor-auth';
import { MfaProps } from './two-factor-auth/MfaProps';
@@ -20,5 +21,8 @@ export const Security: FunctionComponent<SecurityProps> = (props) => (
userProvider={props.userProvider}
/>
<PasscodeLock appState={props.appState} application={props.application} />
{props.appState.enableUnfinishedFeatures && (
<Privacy application={props.application} />
)}
</PreferencesPane>
);