Skip to content

Commit 54af044

Browse files
committed
Pass null in invalidText in TextOutput
1 parent 28ad8ee commit 54af044

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ function PgaExport() {
155155
<TextOutput
156156
className={styles.drefTable}
157157
label={strings.imminentDrefSigned}
158-
invalidText
158+
invalidText={null}
159159
strongLabel
160160
withoutLabelColon
161161
/>
162162
<TextOutput
163163
className={styles.drefTable}
164164
label={strings.imminentIFRCSigned}
165-
invalidText
165+
invalidText={null}
166166
strongLabel
167167
withoutLabelColon
168168
/>

app/src/views/DrefApplicationExport/i18n.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
"dateAndGeographicalArea": "(Date and geographical area)",
119119
"sourceInformationAttachments": "Include the link to the source of information or indicate if shared as attachments.",
120120
"plan": "Plan",
121+
"plannedInterventionAltText": "Planned Intervention Image",
121122
"planDescription": "If the National Society has developed contingency plans, or recently carried out PER assessment or readiness check for instance, kindly attached those documents to the request."
122123
}
123-
}
124+
}

app/src/views/DrefApplicationExport/index.tsx

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ export function Component() {
10911091
</ul>
10921092
))}
10931093
withoutLabelColon
1094-
invalidText
1094+
invalidText={null}
10951095
/>
10961096
<TextOutput
10971097
className={styles.actionsItem}
@@ -1100,26 +1100,23 @@ export function Component() {
11001100
<TextOutput
11011101
key={action.id}
11021102
className={styles.actionsItem}
1103-
label=""
11041103
value={action.budget}
1105-
invalidText
1104+
invalidText={null}
11061105
withoutLabelColon
11071106
/>
11081107
))}
11091108
withoutLabelColon
1110-
invalidText
1109+
invalidText={null}
11111110
/>
11121111

11131112
<TextOutput
11141113
className={styles.actionsItem}
1115-
label=""
11161114
value={strings.priorityActionsEarlyResponse}
11171115
withoutLabelColon
11181116
strongValue
11191117
/>
11201118
<TextOutput
11211119
className={styles.actionsItem}
1122-
label=""
11231120
value={proposedActionsByType[EARLY_RESPONSE]?.map((response) => (
11241121
<ul key={response.id}>
11251122
<li>
@@ -1135,22 +1132,20 @@ export function Component() {
11351132
</ul>
11361133
))}
11371134
withoutLabelColon
1138-
invalidText
1135+
invalidText={null}
11391136
/>
11401137
<TextOutput
11411138
className={styles.actionsItem}
1142-
label=""
11431139
value={proposedActionsByType[EARLY_RESPONSE]?.map((response) => (
11441140
<TextOutput
11451141
className={styles.actionsItem}
1146-
label=""
11471142
value={response.budget}
1148-
invalidText
1143+
invalidText={null}
11491144
withoutLabelColon
11501145
/>
11511146
))}
11521147
withoutLabelColon
1153-
invalidText
1148+
invalidText={null}
11541149
/>
11551150
<div className={styles.actionsItem} />
11561151
<TextOutput
@@ -1162,49 +1157,42 @@ export function Component() {
11621157
/>
11631158
<TextOutput
11641159
className={styles.actionsItem}
1165-
label=""
11661160
value={drefResponse?.sub_total}
11671161
withoutLabelColon
11681162
/>
11691163
<div className={styles.actionsItem} />
11701164
<TextOutput
11711165
className={styles.costItem}
1172-
label=""
11731166
value={strings.priorityActionsSurgeDeployment}
11741167
withoutLabelColon
11751168
strongValue
11761169
/>
11771170
<TextOutput
11781171
className={styles.actionsItem}
1179-
label=""
11801172
value={drefResponse?.surge_deployment_cost}
11811173
withoutLabelColon
11821174
/>
11831175
<div className={styles.actionsItem} />
11841176
<TextOutput
11851177
className={styles.costItem}
1186-
label=""
11871178
value={strings.priorityActionsIndirectCost}
11881179
withoutLabelColon
11891180
strongValue
11901181
/>
11911182
<TextOutput
11921183
className={styles.actionsItem}
1193-
label=""
11941184
value={drefResponse?.indirect_cost}
11951185
withoutLabelColon
11961186
/>
11971187
<div className={styles.actionsItem} />
11981188
<TextOutput
11991189
className={styles.costItem}
1200-
label=""
12011190
value={strings.priorityActionsTotal}
12021191
withoutLabelColon
12031192
strongValue
12041193
/>
12051194
<TextOutput
12061195
className={styles.actionsItem}
1207-
label=""
12081196
value={drefResponse?.total}
12091197
withoutLabelColon
12101198
/>
@@ -1345,7 +1333,7 @@ export function Component() {
13451333
<img
13461334
className={styles.icon}
13471335
src={plannedIntervention.image_url}
1348-
alt=""
1336+
alt={strings.plannedInterventionAltText}
13491337
/>
13501338
{plannedIntervention.title_display}
13511339
</Heading>

0 commit comments

Comments
 (0)