Skip to content

Commit

Permalink
Re-arrange sections of the Summary Page (#1771)
Browse files Browse the repository at this point in the history
  • Loading branch information
entrotech authored Jun 27, 2024
1 parent 23cd570 commit df5532c
Showing 1 changed file with 36 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,39 +219,6 @@ const ProjectSummary = props => {
</div>

{rules ? <ProjectInfoContainer rules={rules} /> : null}

<div className={classes.categoryContainer}>
<div
className={clsx("space-between", classes.categoryHeaderContainer)}
>
<span className={classes.categoryHeader}>
TDM STRATEGIES SELECTED
</span>
<span className={classes.earnedPoints}>EARNED POINTS</span>
</div>
<div className={classes.measuresContainer}>
{rulesNotEmpty
? measureRules.map(rule => (
<MeasureSelected rule={rule} key={rule.id} />
))
: null}
{userDefinedStrategy.calcValue &&
userDefinedStrategy.comment.length > 0 ? (
<div>
<div className={classes.rule}>
<div className={classes.ruleName}>
User-Defined Strategy Details:
</div>
</div>
<div
className={clsx("border-gray", classes.summaryContainer)}
>
{userDefinedStrategy.comment}
</div>
</div>
) : null}
</div>
</div>
<div className={classes.categoryContainer}>
<div
className={clsx("space-between", classes.categoryHeaderContainer)}
Expand Down Expand Up @@ -308,13 +275,45 @@ const ProjectSummary = props => {
</div>
) : null}
</div>
<div className={classes.tempTextContainer}>
<span className={classes.tempText}>
The ordinances behind this TDM calculator are still in public
comment. No submission is possible at this time.
</div>
<div className={classes.categoryContainer}>
<div
className={clsx("space-between", classes.categoryHeaderContainer)}
>
<span className={classes.categoryHeader}>
TDM STRATEGIES SELECTED
</span>
<span className={classes.earnedPoints}>EARNED POINTS</span>
</div>
<div className={classes.measuresContainer}>
{rulesNotEmpty
? measureRules.map(rule => (
<MeasureSelected rule={rule} key={rule.id} />
))
: null}
{userDefinedStrategy.calcValue &&
userDefinedStrategy.comment.length > 0 ? (
<div>
<div className={classes.rule}>
<div className={classes.ruleName}>
User-Defined Strategy Details:
</div>
</div>
<div
className={clsx("border-gray", classes.summaryContainer)}
>
{userDefinedStrategy.comment}
</div>
</div>
) : null}
</div>
</div>
<div className={classes.tempTextContainer}>
<span className={classes.tempText}>
The ordinances behind this TDM calculator are still in public
comment. No submission is possible at this time.
</span>
</div>
</>
) : (
<div className={classes.loaderContainer}>
Expand Down

0 comments on commit df5532c

Please sign in to comment.