feat: implement Protections in prefs (#645)

This commit is contained in:
Gorjan Petrovski
2021-09-23 17:34:59 +02:00
committed by GitHub
parent 73f03e6ea6
commit 5f65d2eca7
3 changed files with 96 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ import { WebApplication } from '@/ui_models/application';
import { AppState } from '@/ui_models/app_state';
import { FunctionComponent } from 'preact';
import { PreferencesPane } from '../components';
import { Encryption, PasscodeLock } from './security-segments';
import { Encryption, PasscodeLock, Protections } from './security-segments';
import { TwoFactorAuthWrapper } from './two-factor-auth';
import { MfaProps } from './two-factor-auth/MfaProps';
@@ -14,6 +14,7 @@ interface SecurityProps extends MfaProps {
export const Security: FunctionComponent<SecurityProps> = (props) => (
<PreferencesPane>
<Encryption appState={props.appState} />
<Protections application={props.application} />
<TwoFactorAuthWrapper
mfaProvider={props.mfaProvider}
userProvider={props.userProvider}