Skip to content

Commit

Permalink
feat: show user verified status
Browse files Browse the repository at this point in the history
  • Loading branch information
Chisomchima committed Jan 15, 2025
1 parent 585a675 commit 0cc7ae3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/UserForm/BasicInformationSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import {
SingleSelectField,
CheckboxField,
} from '../Form.js'
import { useUserNameValidator } from './validators.js'
import styles from './UserForm.module.css'
import { useUserNameValidator } from './validators.js'

const hasOption = (options, value) =>
!!options.find((option) => option.value === value)
Expand All @@ -34,9 +34,7 @@ const EmailStatusMessage = ({ emailVerified }) => {
: i18n.t('This email has not been verified.')

return (
<div
className={styles.statusMessage}
>
<div className={styles.statusMessage}>
<span>{React.createElement(icon, { color })}</span>
<div style={{ color }}>{message}</div>
</div>
Expand Down Expand Up @@ -164,5 +162,7 @@ BasicInformationSection.propTypes = {
user: PropTypes.object,
userDatabaseLanguage: PropTypes.string,
}

EmailStatusMessage.propTypes = {
emailVerified: PropTypes.bool.isRequired,
}
export default BasicInformationSection

0 comments on commit 0cc7ae3

Please sign in to comment.