File size: 988 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import { Card } from '@automattic/components';
import { useTranslate } from 'i18n-calypso';
import { Fragment } from 'react';
import { FormDivider } from 'calypso/blocks/authentication';
import PushNotificationIllustration from './push-notification-illustration';
import TwoFactorActions from './two-factor-actions';
import './waiting-notification-approval.scss';
export default function WaitingTwoFactorNotificationApproval( { switchTwoFactorAuthType } ) {
const translate = useTranslate();
return (
<Fragment>
<Card className="two-factor-authentication__push-notification-approval">
<p className="two-factor-authentication__info">
{ translate(
'Check your device. Approve your login with the Jetpack or WordPress mobile app.'
) }
</p>
<PushNotificationIllustration />
<FormDivider isHorizontal />
<TwoFactorActions
twoFactorAuthType="push"
switchTwoFactorAuthType={ switchTwoFactorAuthType }
/>
</Card>
</Fragment>
);
}
|