Skip to content

Commit

Permalink
chore: change status message green for email verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Chisomchima committed Jan 28, 2025
1 parent a1cb686 commit 75c667c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/components/UserForm/EmailStatusMessage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import i18n from '@dhis2/d2-i18n'
import { IconCheckmarkCircle16, colors, IconWarning16 } from '@dhis2/ui'
import {
IconCheckmarkCircle16,
colors,
IconWarning16,
IconInfo16,
} from '@dhis2/ui'
import PropTypes from 'prop-types'
import React from 'react'
import styles from './UserForm.module.css'
Expand All @@ -23,13 +28,13 @@ const EmailStatusMessage = ({ emailVerified, enforceVerifiedEmail }) => {
} else {
if (!emailVerified) {
color = colors.default
icon = IconWarning16
icon = IconInfo16
message = i18n.t('This user does not have a verified email')
}
if (emailVerified) {
color = colors.default
icon = IconWarning16
message = i18n.t('This user email has been verified')
color = colors.green600
icon = IconCheckmarkCircle16
message = i18n.t('This user email has been verified.')
}
}

Expand Down

0 comments on commit 75c667c

Please sign in to comment.