Skip to content

Commit d854c78

Browse files
barshathakurishreeyash07
authored andcommitted
Fix export styling
1 parent 90fcb06 commit d854c78

File tree

5 files changed

+28
-12
lines changed

5 files changed

+28
-12
lines changed

app/src/components/domain/DrefExportModal/index.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
} from '#utils/restRequest';
2929

3030
import i18n from './i18n.json';
31+
import styles from './styles.module.css';
3132

3233
type ExportTypeEnum = components<'read'>['schemas']['ExportTypeEnum'];
3334
type ExportStatusEnum = components<'read'>['schemas']['ExportStatusEnum'];
@@ -240,15 +241,17 @@ function DrefExportModal(props: Props) {
240241
)}
241242
/>
242243
) : (!exportStatusResponse && (
243-
<Button
244-
variant="secondary"
245-
name={undefined}
246-
onClick={handleDrefImminent}
247-
>
248-
{isPga
249-
? strings.drefDownloadPDFWithPGA
250-
: strings.drefDownloadPDFwithoutPGA}
251-
</Button>
244+
<div className={styles.downloadButton}>
245+
<Button
246+
variant="secondary"
247+
name={undefined}
248+
onClick={handleDrefImminent}
249+
>
250+
{isPga
251+
? strings.drefDownloadPDFWithPGA
252+
: strings.drefDownloadPDFwithoutPGA}
253+
</Button>
254+
</div>
252255
))
253256
)}
254257
{isDefined(exportStatusResponse)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.download-button {
2+
display: flex;
3+
align-items: center;
4+
flex-direction: column;
5+
padding: var(--go-ui-spacing-md);
6+
}

app/src/views/DrefApplicationExport/PgaExport/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,23 @@ function PgaExport() {
130130
<div className={styles.bankDetails}>
131131
<BlockTextOutput
132132
label={strings.nationalSocietyBankName}
133+
invalidText={null}
133134
/>
134135
<BlockTextOutput
135136
label={strings.nationalSocietyBankAccountNumber}
137+
invalidText={null}
136138
/>
137139
<BlockTextOutput
138140
label={strings.nationalSocietySwiftCode}
141+
invalidText={null}
139142
/>
140143
<BlockTextOutput
141144
label={strings.nationalSocietyAmount}
142145
value={strings.nationalSocietyAmountCHF}
143146
/>
144147
<BlockTextOutput
145148
label={strings.nationalSocietyAdvancePayment}
149+
invalidText={null}
146150
/>
147151
</div>
148152
<i>{strings.nationalSocietyBankFooter}</i>

app/src/views/DrefApplicationExport/PgaExport/styles.module.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
.pga-export {
22
margin: var(--go-ui-spacing-xl) auto;
33

4+
.page-break {
5+
break-before: page;
6+
}
7+
48
.description {
59
margin: 0;
6-
padding: 0;
7-
list-style-position: inside;
10+
padding-left: var(--go-ui-spacing-sm);
811
}
912

1013
.table-description {

app/src/views/DrefApplicationExport/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ export function Component() {
571571
strongValue
572572
/>
573573
</Container>
574+
<div className={styles.pageBreak} />
574575
{showScenarioAnalysis && (
575576
<>
576577
<Heading level={2}>
@@ -603,7 +604,6 @@ export function Component() {
603604
)}
604605
{showEventDescriptionSection && (
605606
<>
606-
<div className={styles.pageBreak} />
607607
{drefResponse?.disaster_category_analysis_details?.file
608608
&& drefResponse.type_of_dref !== DREF_TYPE_IMMINENT && (
609609
<Container>

0 commit comments

Comments
 (0)