feat: two factor authentication segment in preferences with mocked state (#600)
This commit is contained in:
13
app/assets/javascripts/preferences/panes/Security.tsx
Normal file
13
app/assets/javascripts/preferences/panes/Security.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { observer } from 'mobx-react-lite';
|
||||
import { FunctionComponent } from 'preact';
|
||||
import { PreferencesPane } from '../components';
|
||||
import { Preferences } from '../models';
|
||||
import { TwoFactorAuthComponent } from './TwoFactorAuth';
|
||||
|
||||
export const Security: FunctionComponent<{ prefs: Preferences }> = observer(
|
||||
({ prefs }) => (
|
||||
<PreferencesPane>
|
||||
<TwoFactorAuthComponent tfAuth={prefs.twoFactorAuth} />
|
||||
</PreferencesPane>
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user