diff --git a/client/src/components/Indicator/Indicator.module.scss b/client/src/components/Indicator/Indicator.module.scss
index 2f6dbade..6d9ef09b 100644
--- a/client/src/components/Indicator/Indicator.module.scss
+++ b/client/src/components/Indicator/Indicator.module.scss
@@ -59,7 +59,7 @@
}
.unavailable {
- opacity: .2;
+ opacity: .6;
}
}
}
diff --git a/client/src/components/Indicator/Indicator.tsx b/client/src/components/Indicator/Indicator.tsx
index efbc2a05..ff1c774a 100644
--- a/client/src/components/Indicator/Indicator.tsx
+++ b/client/src/components/Indicator/Indicator.tsx
@@ -8,20 +8,14 @@ import * as constants from '../../data/constants';
import * as EXPLORE_COPY from '../../data/copy/explore';
// @ts-ignore
-import downArrow from '/node_modules/uswds/dist/img/usa-icons/arrow_downward.svg';
-// @ts-ignore
-import upArrow from '/node_modules/uswds/dist/img/usa-icons/arrow_upward.svg';
-// @ts-ignore
-import unAvailable from '/node_modules/uswds/dist/img/usa-icons/do_not_disturb.svg';
+import unAvailable from '/node_modules/uswds/dist/img/usa-icons/error_outline.svg';
interface IIndicator {
indicator: indicatorInfo,
}
interface IIndicatorValueIcon {
- type: indicatorType,
value: number | null,
- isAboveThresh: boolean,
};
interface IIndicatorValueSubText {
@@ -37,31 +31,21 @@ interface IIndicatorValue {
}
/**
- * This component will determine what indicator's icon should be (arrowUp, arrowDown or unavailable) and
- * return the appropriate JSX.
+ * This component will determine what indicator's icon should be. Either show the unavailable icon
+ * or show nothing.
*
- * @param {number | null} props
+ * @param {number | null} value
* @return {JSX.Element}
*/
-export const IndicatorValueIcon = ({type, value, isAboveThresh}: IIndicatorValueIcon) => {
+export const IndicatorValueIcon = ({value}: IIndicatorValueIcon) => {
const intl = useIntl();
- if (value == null) {
- return ;
- } else if (type === 'percent' || type === 'percentile') {
- return isAboveThresh ?
-
:
-
;
- } else return <>>;
+ />
+ ) : <>>;
};
/**
@@ -155,7 +139,7 @@ export const superscriptOrdinal = (indicatorValueWithSuffix:string) => {
export const IndicatorValue = ({type, displayStat}:IIndicatorValue) => {
const intl = useIntl();
- if (displayStat === null) return