-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from dhis2/DHIS2-18375/email-verify-status-page
feat: add email verification pages
- Loading branch information
Showing
5 changed files
with
83 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import i18n from '@dhis2/d2-i18n' | ||
import { NoticeBox } from '@dhis2/ui' | ||
import React from 'react' | ||
import { FormContainer } from '../components/index.js' | ||
import { useLoginConfig } from '../providers/index.js' | ||
|
||
function EmailVerificationFailure() { | ||
const { lngs } = useLoginConfig() | ||
|
||
return ( | ||
<FormContainer title={i18n.t('Email Verification Failed', { lngs })}> | ||
<NoticeBox | ||
error | ||
title={i18n.t('Unable to verify your email', { lngs })} | ||
> | ||
{i18n.t( | ||
'The verification link is invalid or has expired. Please request a new verification email.', | ||
{ lngs } | ||
)} | ||
</NoticeBox> | ||
</FormContainer> | ||
) | ||
} | ||
|
||
export default EmailVerificationFailure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import i18n from '@dhis2/d2-i18n' | ||
import { NoticeBox } from '@dhis2/ui' | ||
import React from 'react' | ||
import { FormContainer } from '../components/index.js' | ||
import { useLoginConfig } from '../providers/index.js' | ||
|
||
function EmailVerificationSuccess() { | ||
const { lngs } = useLoginConfig() | ||
|
||
return ( | ||
<FormContainer title={i18n.t('Email confirmed', { lngs })}> | ||
<NoticeBox | ||
valid | ||
title={i18n.t('Your email has been confirmed.', { lngs })} | ||
> | ||
{i18n.t('You can now close this page.', { lngs })} | ||
</NoticeBox> | ||
</FormContainer> | ||
) | ||
} | ||
|
||
export default EmailVerificationSuccess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters