From ed705ad90d371c0cd1d23b95fd54c060639c0abd Mon Sep 17 00:00:00 2001 From: eirikhaugstulen Date: Tue, 30 Jan 2024 10:39:23 +0100 Subject: [PATCH] fix: change icon --- .../TransferModal/InfoBoxes/InfoBoxes.component.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/core_modules/capture-core/components/WidgetEnrollment/TransferModal/InfoBoxes/InfoBoxes.component.js b/src/core_modules/capture-core/components/WidgetEnrollment/TransferModal/InfoBoxes/InfoBoxes.component.js index 7e423d4697..ccea978be0 100644 --- a/src/core_modules/capture-core/components/WidgetEnrollment/TransferModal/InfoBoxes/InfoBoxes.component.js +++ b/src/core_modules/capture-core/components/WidgetEnrollment/TransferModal/InfoBoxes/InfoBoxes.component.js @@ -2,7 +2,7 @@ import React from 'react'; import cx from 'classnames'; import { withStyles } from '@material-ui/core/styles'; -import { colors, IconInfo16 } from '@dhis2/ui'; +import { colors, IconInfo16, IconWarning16 } from '@dhis2/ui'; import i18n from '@dhis2/d2-i18n'; import { useOrgUnitName } from '../../../../metadataRetrieval/orgUnitName'; import { OrgUnitScopes } from '../hooks/useTransferValidation'; @@ -38,9 +38,6 @@ const styles = { '&.warning': { backgroundColor: colors.yellow100, }, - '&.error': { - backgroundColor: colors.red600, - }, }, }; @@ -72,7 +69,7 @@ const InfoBoxesPlain = ({ {showWarning && (
- + {i18n.t('You will lose access to the enrollment when transferring ownership to {{organisationUnit}}.', { organisationUnit: newOrgUnitName, })}