mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 01:31:25 -08:00
Remove linguistic iso in Puerto Rico only
This commit is contained in:
parent
c3c38e919b
commit
6c25e98e93
2 changed files with 5 additions and 47 deletions
|
@ -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) {
|
||||
|
|
|
@ -2771,50 +2771,6 @@ exports[`rendering of the AreaDetail checks if indicators for PUERTO RICO are pr
|
|||
No
|
||||
</div>
|
||||
</div>
|
||||
<li
|
||||
data-cy="indicatorBox"
|
||||
data-testid="indicator-box"
|
||||
>
|
||||
<div>
|
||||
<div>
|
||||
Linguistic isolation
|
||||
<div>
|
||||
|
||||
Percent of households where no one over the age 14 speaks English well
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<div>
|
||||
97
|
||||
<sup
|
||||
style="top: -0.2em;"
|
||||
>
|
||||
th
|
||||
</sup>
|
||||
</div>
|
||||
<div>
|
||||
<img
|
||||
alt="an icon for the up arrow"
|
||||
src="test-file-stub"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
above 90
|
||||
<sup
|
||||
style="top: -0.2em;"
|
||||
>
|
||||
th
|
||||
</sup>
|
||||
percentile
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li
|
||||
data-cy="indicatorBox"
|
||||
data-testid="indicator-box"
|
||||
|
|
Loading…
Add table
Reference in a new issue