File tree Expand file tree Collapse file tree 5 files changed +28
-12
lines changed
components/domain/DrefExportModal
views/DrefApplicationExport Expand file tree Collapse file tree 5 files changed +28
-12
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import {
2828} from '#utils/restRequest' ;
2929
3030import i18n from './i18n.json' ;
31+ import styles from './styles.module.css' ;
3132
3233type ExportTypeEnum = components < 'read' > [ 'schemas' ] [ 'ExportTypeEnum' ] ;
3334type 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 )
Original file line number Diff line number Diff line change 1+ .download-button {
2+ display : flex;
3+ align-items : center;
4+ flex-direction : column;
5+ padding : var (--go-ui-spacing-md );
6+ }
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments