Skip to content

Commit

Permalink
fix: change icon
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhaugstulen committed Jan 30, 2024
1 parent a36ba4b commit ed705ad
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -38,9 +38,6 @@ const styles = {
'&.warning': {
backgroundColor: colors.yellow100,
},
'&.error': {
backgroundColor: colors.red600,
},
},
};

Expand Down Expand Up @@ -72,7 +69,7 @@ const InfoBoxesPlain = ({

{showWarning && (
<div className={cx(classes.alert, { warning: true })}>
<IconInfo16 />
<IconWarning16 />
{i18n.t('You will lose access to the enrollment when transferring ownership to {{organisationUnit}}.', {
organisationUnit: newOrgUnitName,
})}
Expand Down

0 comments on commit ed705ad

Please sign in to comment.