|
@@ -1,6 +1,7 @@
|
|
|
import useWaitForI18n from '@/shared/hooks/use-wait-for-i18n'
|
|
import useWaitForI18n from '@/shared/hooks/use-wait-for-i18n'
|
|
|
import { Button } from 'react-bootstrap'
|
|
import { Button } from 'react-bootstrap'
|
|
|
import { Trans, useTranslation } from 'react-i18next'
|
|
import { Trans, useTranslation } from 'react-i18next'
|
|
|
|
|
+import { Interstitial } from '@/shared/components/interstitial'
|
|
|
|
|
|
|
|
export function CompromisedPasswordCard() {
|
|
export function CompromisedPasswordCard() {
|
|
|
const { t } = useTranslation()
|
|
const { t } = useTranslation()
|
|
@@ -11,29 +12,28 @@ export function CompromisedPasswordCard() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <div className="compromised-password">
|
|
|
|
|
- <div>
|
|
|
|
|
- <h3 className="compromised-password-header">
|
|
|
|
|
- {t('compromised_password')}
|
|
|
|
|
- </h3>
|
|
|
|
|
- <p>
|
|
|
|
|
- <Trans
|
|
|
|
|
- i18nKey="your_password_was_detected"
|
|
|
|
|
- components={[
|
|
|
|
|
- /* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */
|
|
|
|
|
- <a
|
|
|
|
|
- href="https://haveibeenpwned.com/passwords"
|
|
|
|
|
- target="_blank"
|
|
|
|
|
- rel="noreferrer"
|
|
|
|
|
- />,
|
|
|
|
|
- ]}
|
|
|
|
|
- />
|
|
|
|
|
- </p>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <Interstitial
|
|
|
|
|
+ contentClassName="compromised-password-content"
|
|
|
|
|
+ showLogo={false}
|
|
|
|
|
+ title={t('compromised_password')}
|
|
|
|
|
+ >
|
|
|
|
|
+ <p>
|
|
|
|
|
+ <Trans
|
|
|
|
|
+ i18nKey="your_password_was_detected"
|
|
|
|
|
+ components={[
|
|
|
|
|
+ /* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */
|
|
|
|
|
+ <a
|
|
|
|
|
+ href="https://haveibeenpwned.com/passwords"
|
|
|
|
|
+ target="_blank"
|
|
|
|
|
+ rel="noreferrer"
|
|
|
|
|
+ />,
|
|
|
|
|
+ ]}
|
|
|
|
|
+ />
|
|
|
|
|
+ </p>
|
|
|
|
|
|
|
|
<Button className="btn-primary" href="/user/settings">
|
|
<Button className="btn-primary" href="/user/settings">
|
|
|
{t('change_password_in_account_settings')}
|
|
{t('change_password_in_account_settings')}
|
|
|
</Button>
|
|
</Button>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </Interstitial>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|