feat: disabled 2fa feature (#631)
* feat: add dim and blur to unavailable 2fa * feat: message over disabled 2FA * feat: 2fa remove overlay and dimming * fix: add newline to _ui,css * fix: tsc errors * Update app/assets/javascripts/preferences/panes/two-factor-auth/TwoFactorAuthView.tsx Co-authored-by: Vardan Hakobyan <vardan_live@live.com> * refactor: rename s to status Co-authored-by: Vardan Hakobyan <vardan_live@live.com>
This commit is contained in:
@@ -4,10 +4,10 @@ import { MfaProps } from './MfaProps';
|
||||
import { TwoFactorAuth } from './TwoFactorAuth';
|
||||
import { TwoFactorAuthView } from './TwoFactorAuthView';
|
||||
|
||||
export const TwoFactorAuthWrapper: FunctionComponent<MfaProps> = ({
|
||||
mfaGateway,
|
||||
}) => {
|
||||
const [auth] = useState(() => new TwoFactorAuth(mfaGateway));
|
||||
export const TwoFactorAuthWrapper: FunctionComponent<MfaProps> = (props) => {
|
||||
const [auth] = useState(
|
||||
() => new TwoFactorAuth(props.mfaProvider, props.userProvider)
|
||||
);
|
||||
auth.fetchStatus();
|
||||
return <TwoFactorAuthView auth={auth} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user