mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-20 09:11:40 -07:00
Added tract grandfathering language to UI
This commit is contained in:
parent
d22c348504
commit
a58edbc724
10 changed files with 49 additions and 23 deletions
|
@ -10,6 +10,7 @@ interface IPrioritizationCopy {
|
|||
isAdjacencyThreshMet: boolean,
|
||||
isAdjacencyLowIncome: boolean,
|
||||
isIslandLowIncome: boolean,
|
||||
isGrandfathered: boolean,
|
||||
tribalCountAK: number | null,
|
||||
tribalCountUS: null, // when this signal is supported add number type
|
||||
percentTractTribal: number | null
|
||||
|
@ -38,6 +39,7 @@ const PrioritizationCopy =
|
|||
totalBurdensPrioritized,
|
||||
isAdjacencyThreshMet,
|
||||
isAdjacencyLowIncome,
|
||||
isGrandfathered,
|
||||
isIslandLowIncome,
|
||||
tribalCountAK,
|
||||
tribalCountUS,
|
||||
|
@ -57,8 +59,10 @@ const PrioritizationCopy =
|
|||
} else if (isAdjacencyThreshMet && !isAdjacencyLowIncome) {
|
||||
// if 1-2-1
|
||||
if ( tribalCountAK === null && tribalCountUS === null) {
|
||||
if (isGrandfathered) {
|
||||
prioCopyRendered = EXPLORE_COPY.PRIORITIZATION_COPY.PRIO_GRANDFATHERED_LI;
|
||||
// if 1-2-1-1
|
||||
if (percentTractTribal === null) {
|
||||
} else if (percentTractTribal === null) {
|
||||
prioCopyRendered = EXPLORE_COPY.PRIORITIZATION_COPY.NOT_PRIO_SURR_LI;
|
||||
// if 1-2-1-2
|
||||
} else if (percentTractTribal === 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue