mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 17:44:20 -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) {
|
if (sidePanelState === constants.SIDE_PANEL_STATE_VALUES.PUERTO_RICO) {
|
||||||
/* For Puerto Rico - only show the following indicators:
|
/* For Puerto Rico - only show the following indicators:
|
||||||
sustainable housing: only housing cost burden
|
clean energy (index 1): show all
|
||||||
clean energy: all as is
|
sustainable housing (index 2): only housing cost burden
|
||||||
legacy pollution: all as is
|
legacy pollution (index 3): show all
|
||||||
|
workforce dev (index 4): remove linguistic iso
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// eslint-disable-next-line max-len
|
// 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 = categories.filter((category) => category.id === 'work-dev' || category.id === 'clean-energy' || category.id === 'leg-pollute' || category.id === 'sustain-house');
|
||||||
categories[1].indicators = [houseBurden];
|
categories[1].indicators = [houseBurden];
|
||||||
|
categories[3].indicators = [lowMedInc, unemploy, poverty];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sidePanelState === constants.SIDE_PANEL_STATE_VALUES.ISLAND_AREAS) {
|
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
|
No
|
||||||
</div>
|
</div>
|
||||||
</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
|
<li
|
||||||
data-cy="indicatorBox"
|
data-cy="indicatorBox"
|
||||||
data-testid="indicator-box"
|
data-testid="indicator-box"
|
||||||
|
|
Loading…
Add table
Reference in a new issue