feat(preferences): 2FA activation dialog with mocked state (#605)
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
import { observer } from 'mobx-react-lite';
|
||||
import { FunctionComponent } from 'preact';
|
||||
import { PreferencesPane } from '../components';
|
||||
import { Preferences } from '../models';
|
||||
import { TwoFactorAuthComponent } from './TwoFactorAuth';
|
||||
import { TwoFactorAuthWrapper } from './two-factor-auth';
|
||||
|
||||
export const Security: FunctionComponent<{ prefs: Preferences }> = observer(
|
||||
({ prefs }) => (
|
||||
<PreferencesPane>
|
||||
<TwoFactorAuthComponent tfAuth={prefs.twoFactorAuth} />
|
||||
</PreferencesPane>
|
||||
)
|
||||
export const Security: FunctionComponent = () => (
|
||||
<PreferencesPane>
|
||||
<TwoFactorAuthWrapper />
|
||||
</PreferencesPane>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user