From a48768e2684a64555f9f298e1acef13afbc3eccc Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Wed, 17 Jan 2018 10:23:23 +0100 Subject: [PATCH] replace clear icon with refresh icon --- src/interface/FormComponents.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interface/FormComponents.js b/src/interface/FormComponents.js index a4bccb3..548547d 100644 --- a/src/interface/FormComponents.js +++ b/src/interface/FormComponents.js @@ -6,7 +6,7 @@ import MaterialUISelectField from 'material-ui/SelectField' import MaterialUICheckbox from 'material-ui/Checkbox'; import { blue500, grey500 } from 'material-ui/styles/colors'; import TextFieldIcon from 'material-ui-textfield-icon'; -import Clear from 'material-ui-icons/Clear'; +import RefreshIcon from 'material-ui-icons/Refresh'; const contextTypes = { settings: PropTypes.object.isRequired, @@ -34,7 +34,7 @@ SelectField.propTypes = propTypes; export const TextField = (props, context) => ( context.onChange(props.name, null)} />} + icon={context.advancedFields.includes(props.name) && context.onChange(props.name, null)} />} floatingLabelStyle={{ color: context.advancedFields.includes(props.name) ? blue500 : grey500 }} disabled={context.disabled} value={_.get(context, props.name)} @@ -54,7 +54,7 @@ export const Checkbox = (props, context) => ( checked={_.get(context, props.name)} onCheck={(event, value) => context.onChange(props.name, value)} /> - {context.advancedFields.includes(props.name) && context.onChange(props.name, null)} />} + {context.advancedFields.includes(props.name) && context.onChange(props.name, null)} />} ); Checkbox.contextTypes = contextTypes;