From 7128a68641b944fd415422cb957f8f3e25574d37 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Sun, 12 Apr 2020 20:51:38 +0200 Subject: [PATCH] Change icon color is machines available --- src/components/Lists/ProxiwashSectionHeader.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Lists/ProxiwashSectionHeader.js b/src/components/Lists/ProxiwashSectionHeader.js index 3eaaea5..48d1e0e 100644 --- a/src/components/Lists/ProxiwashSectionHeader.js +++ b/src/components/Lists/ProxiwashSectionHeader.js @@ -29,11 +29,14 @@ class ProxiwashListItem extends React.Component { (props.nbAvailable <= 1) ? i18n.t('proxiwashScreen.numAvailable') : i18n.t('proxiwashScreen.numAvailablePlural')); + const iconColor = props.nbAvailable > 0 + ? this.props.theme.colors.success + : this.props.theme.colors.primary; return (