-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making the information about not-verified email address more persiste…
…nt and visible on multiple places.
- Loading branch information
1 parent
e2e57d0
commit ccfd6ce
Showing
11 changed files
with
128 additions
and
64 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
src/components/Users/NotVerifiedEmailCallout/NotVerifiedEmailCallout.js
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,42 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { FormattedMessage } from 'react-intl'; | ||
|
||
import ResendVerificationEmail from '../../../containers/ResendVerificationEmailContainer'; | ||
import Callout from '../../widgets/Callout'; | ||
import Button, { TheButtonGroup } from '../../widgets/TheButton'; | ||
import { RefreshIcon } from '../../icons'; | ||
|
||
const NotVerifiedEmailCallout = ({ userId, refreshUser }) => ( | ||
<Callout variant="warning"> | ||
<h3> | ||
<FormattedMessage id="app.editUser.emailStillNotVerifiedTitle" defaultMessage="Email Address Is Not Verified" /> | ||
</h3> | ||
<p> | ||
<FormattedMessage | ||
id="app.editUser.emailStillNotVerified" | ||
defaultMessage="Your email addres has not been verified yet. ReCodEx needs to rely on vaild addresses since many notifications are sent via email. You may send yourself a validation email using the button below and then use a link from that email to verify its acceptance. Please validate your address as soon as possible." | ||
/> | ||
</p> | ||
<p> | ||
<FormattedMessage | ||
id="app.editUser.isEmailAlreadyVefiried" | ||
defaultMessage="If you have just verified your email and still see the message, please refresh the page." | ||
/> | ||
</p> | ||
<TheButtonGroup className="mb-2"> | ||
<ResendVerificationEmail userId={userId} /> | ||
<Button variant="outline-secondary" onClick={refreshUser}> | ||
<RefreshIcon gapRight /> | ||
<FormattedMessage id="generic.refresh" defaultMessage="Refresh" /> | ||
</Button> | ||
</TheButtonGroup> | ||
</Callout> | ||
); | ||
|
||
NotVerifiedEmailCallout.propTypes = { | ||
userId: PropTypes.string.isRequired, | ||
refreshUser: PropTypes.func.isRequired, | ||
}; | ||
|
||
export default NotVerifiedEmailCallout; |
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,2 @@ | ||
import NotVerifiedEmailCallout from './NotVerifiedEmailCallout'; | ||
export default NotVerifiedEmailCallout; |
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
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
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
Oops, something went wrong.