From 6c25e98e93a29ad914cc3e7107fb50ec30d85249 Mon Sep 17 00:00:00 2001 From: Vim USDS Date: Thu, 23 Jun 2022 15:46:21 -0700 Subject: [PATCH] Remove linguistic iso in Puerto Rico only --- .../src/components/AreaDetail/AreaDetail.tsx | 8 ++-- .../__snapshots__/areaDetail.test.tsx.snap | 44 ------------------- 2 files changed, 5 insertions(+), 47 deletions(-) diff --git a/client/src/components/AreaDetail/AreaDetail.tsx b/client/src/components/AreaDetail/AreaDetail.tsx index 2c7ad89a..1fdb081c 100644 --- a/client/src/components/AreaDetail/AreaDetail.tsx +++ b/client/src/components/AreaDetail/AreaDetail.tsx @@ -504,14 +504,16 @@ const AreaDetail = ({properties, hash}: IAreaDetailProps) => { */ if (sidePanelState === constants.SIDE_PANEL_STATE_VALUES.PUERTO_RICO) { /* For Puerto Rico - only show the following indicators: - sustainable housing: only housing cost burden - clean energy: all as is - legacy pollution: all as is + clean energy (index 1): show all + sustainable housing (index 2): only housing cost burden + legacy pollution (index 3): show all + workforce dev (index 4): remove linguistic iso */ // eslint-disable-next-line max-len categories = categories.filter((category) => category.id === 'work-dev' || category.id === 'clean-energy' || category.id === 'leg-pollute' || category.id === 'sustain-house'); categories[1].indicators = [houseBurden]; + categories[3].indicators = [lowMedInc, unemploy, poverty]; } if (sidePanelState === constants.SIDE_PANEL_STATE_VALUES.ISLAND_AREAS) { diff --git a/client/src/components/AreaDetail/tests/__snapshots__/areaDetail.test.tsx.snap b/client/src/components/AreaDetail/tests/__snapshots__/areaDetail.test.tsx.snap index f1c73b06..d714f6b1 100644 --- a/client/src/components/AreaDetail/tests/__snapshots__/areaDetail.test.tsx.snap +++ b/client/src/components/AreaDetail/tests/__snapshots__/areaDetail.test.tsx.snap @@ -2771,50 +2771,6 @@ exports[`rendering of the AreaDetail checks if indicators for PUERTO RICO are pr No -
  • -
    -
    - Linguistic isolation -
    - - Percent of households where no one over the age 14 speaks English well - -
    -
    -
    -
    -
    - 97 - - th - -
    -
    - an icon for the up arrow -
    -
    -
    -
    - above 90 - - th - - percentile -
    -
    -
    -
    -