Skip to content

Commit

Permalink
Change font and color of targeting strategy link in dref application …
Browse files Browse the repository at this point in the history
…export
  • Loading branch information
fereeca committed Jan 5, 2024
1 parent 30cd432 commit 9c08ba6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/views/DrefApplicationExport/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,24 +460,23 @@ export function Component() {
strongValue
/>
</Container>

{showEventDescriptionSection && (
<>
<div className={styles.pageBreak} />
<Heading level={2}>
{strings.eventDescriptionSectionHeading}
</Heading>
{drefResponse?.disaster_category_analysis_details?.file && (
<Container>
<Link
href={drefResponse?.disaster_category_analysis_details?.file}
external
withUnderline
>
{strings.crisisCategorySupportingDocumentLabel}
</Link>
</Container>
)}
<Container>
<Link
href={drefResponse?.disaster_category_analysis_details?.file}
external
withUnderline
>
{strings.crisisCategorySupportingDocumentLabel}
</Link>
</Container>
)}
{isDefined(drefResponse)
&& drefResponse.type_of_dref === DREF_TYPE_IMMINENT
&& isTruthyString(drefResponse.event_text) && (
Expand Down Expand Up @@ -835,6 +834,18 @@ export function Component() {
<Heading level={2}>
{strings.targetingStrategySectionHeading}
</Heading>
{targetingStrategySupportingDocumentDefined && (
<Container>
<Link
className={styles.targetingStrategyLink}
href={drefResponse?.targeting_strategy_support_file_details?.file}
external
withUnderline
>
{strings.targetingStrategySupportingDocument}
</Link>
</Container>
)}
{peopleAssistedDefined && (
<Container
heading={strings.peopleAssistedHeading}
Expand All @@ -853,17 +864,6 @@ export function Component() {
</DescriptionText>
</Container>
)}
{targetingStrategySupportingDocumentDefined && (
<Container>
<Link
href={drefResponse?.targeting_strategy_support_file_details?.file}
external
withUnderline
>
{strings.targetingStrategySupportingDocument}
</Link>
</Container>
)}
</>
)}
<Container
Expand Down
6 changes: 6 additions & 0 deletions src/views/DrefApplicationExport/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,10 @@
color: var(--go-ui-color-primary-red);
}
}

.targeting-strategy-link {
color: var(--go-ui-color-blue);
font-size: var(--go-ui-font-size-md);
}

}

0 comments on commit 9c08ba6

Please sign in to comment.