From 137e19da7e1583a3147f05b5a967cceb821ec00e Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Tue, 12 Dec 2023 16:51:55 +0100 Subject: [PATCH] fix: update info icons --- src/settingsFields.component.js | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/src/settingsFields.component.js b/src/settingsFields.component.js index 0e746a58..c33057ea 100644 --- a/src/settingsFields.component.js +++ b/src/settingsFields.component.js @@ -1,8 +1,14 @@ import i18n from '@dhis2/d2-i18n' -import { Button, Card, CenteredContent, CircularLoader } from '@dhis2/ui' +import { + Button, + Card, + CenteredContent, + CircularLoader, + IconInfo24, + Tooltip, +} from '@dhis2/ui' import FormBuilder from 'd2-ui/lib/forms/FormBuilder.component.js' import { wordToValidatorMap } from 'd2-ui/lib/forms/Validators.js' -import IconButton from 'material-ui/IconButton' import PropTypes from 'prop-types' import React from 'react' import configOptionStore from './configOptionStore.js' @@ -35,7 +41,7 @@ const styles = { color: AppTheme.rawTheme.palette.primary1Color, position: 'absolute', right: 0, - top: 24, + top: 36, }, menuIcon: { color: '#757575', @@ -84,24 +90,12 @@ function wrapUserSettingsOverride({ component, valueLabel }) { : i18n.t('This setting can be overridden by user settings') return ( -
+
{super.render()}
- - info_outline - + + +
)