mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-26 12:51: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
|
@ -1163,6 +1163,9 @@ const AreaDetail = ({properties}: IAreaDetailProps) => {
|
|||
null
|
||||
}
|
||||
percentTractTribal={percentTractTribal}
|
||||
isGrandfathered={
|
||||
properties[constants.IS_GRANDFATHERED]
|
||||
}
|
||||
/>
|
||||
<PrioritizationCopy2
|
||||
totalCategoriesPrioritized={
|
||||
|
@ -1189,9 +1192,11 @@ const AreaDetail = ({properties}: IAreaDetailProps) => {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{/* Only show the DonutCopy if Adjacency index is true and the total number of disadv ind == 0 */}
|
||||
{/* Only show the DonutCopy if Adjacency index is true, the total number of disadv ind == 0,
|
||||
and not grandfathered. */}
|
||||
{properties[constants.ADJACENCY_EXCEEDS_THRESH] &&
|
||||
properties[constants.TOTAL_NUMBER_OF_DISADVANTAGE_INDICATORS] === 0 && (
|
||||
properties[constants.TOTAL_NUMBER_OF_DISADVANTAGE_INDICATORS] === 0 &&
|
||||
!properties[constants.IS_GRANDFATHERED] && (
|
||||
<DonutCopy
|
||||
isAdjacent={properties[constants.ADJACENCY_EXCEEDS_THRESH]}
|
||||
povertyBelow200Percentile={
|
||||
|
|
|
@ -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