* feat: implement encrypted items info * Update app/assets/javascripts/ui_models/app_state/account_menu_state.ts Co-authored-by: Mo Bitar <mo@standardnotes.org> * Update app/assets/javascripts/ui_models/app_state/account_menu_state.ts Co-authored-by: Mo Bitar <mo@standardnotes.org> * Update app/assets/javascripts/preferences/panes/EndToEndEncryption.tsx Co-authored-by: Mo Bitar <mo@standardnotes.org> * Update app/assets/javascripts/preferences/panes/EndToEndEncryption.tsx Co-authored-by: Mo Bitar <mo@standardnotes.org> Co-authored-by: Mo Bitar <mo@standardnotes.org>
21 lines
663 B
TypeScript
21 lines
663 B
TypeScript
import { AppState } from '@/ui_models/app_state';
|
|
import { FunctionComponent } from 'preact';
|
|
import { PreferencesPane } from '../components';
|
|
import { EndToEndEncryption } from './EndToEndEncryption';
|
|
import { TwoFactorAuthWrapper } from './two-factor-auth';
|
|
import { MfaProps } from './two-factor-auth/MfaProps';
|
|
|
|
interface SecurityProps extends MfaProps {
|
|
appState: AppState;
|
|
}
|
|
|
|
export const Security: FunctionComponent<SecurityProps> = (props) => (
|
|
<PreferencesPane>
|
|
<EndToEndEncryption appState={props.appState} />
|
|
<TwoFactorAuthWrapper
|
|
mfaProvider={props.mfaProvider}
|
|
userProvider={props.userProvider}
|
|
/>
|
|
</PreferencesPane>
|
|
);
|