Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.

Commit 9f82894

Browse files
authored
Resolve label/id missing Error on Money Lost Page (#2410)
* Resolve label/id missing Error on Money Lost Page * Remove extra id * Refactor layout code and make it cleaner in Money Lost Form * remove unused import hidentext
1 parent 8723247 commit 9f82894

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

f2/src/forms/MoneyLostInfoForm.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,26 +166,21 @@ export const MoneyLostInfoForm = (props) => {
166166
/>
167167
</Row>
168168
<Row className="form-section">
169-
<Row className="form-label">
170-
<Trans id="moneyLostPage.transactionDate" />
171-
</Row>
172-
<Row className="form-helper-text">
173-
<Trans id="moneyLostPage.transactionDateExample" />
174-
</Row>
175169
{errors && errors.transaction && (
176170
<ErrorText>
177171
<Trans id="moneyLostPage.transactionDateErrorSummaryMessage" />
178172
</ErrorText>
179173
)}
180174
<Field
181175
name="transaction"
176+
label={<Trans id="moneyLostPage.transactionDate" />}
177+
helpText={<Trans id="moneyLostPage.transactionDateExample" />}
182178
component={DatePicker}
183179
onBlur={handleBlur}
184180
onChange={handleChange}
185181
id="transaction"
186182
/>
187183
</Row>
188-
189184
<Row>
190185
<NextCancelButtons
191186
submit={<Trans id="businessInfoPage.nextButton" />}

0 commit comments

Comments
 (0)