Skip to content

Commit bbeedd2

Browse files
authored
Merge pull request #1066 from opencrvs/ocrvs-10583
Change fields not to use `_` in id.
2 parents e455eac + 534d5eb commit bbeedd2

File tree

12 files changed

+26
-26
lines changed

12 files changed

+26
-26
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"@hapi/boom": "^9.1.1",
6969
"@hapi/hapi": "^20.0.1",
7070
"@hapi/inert": "^6.0.3",
71-
"@opencrvs/toolkit": "1.8.1-rc.4cfe084",
71+
"@opencrvs/toolkit": "1.8.1-rc.a5eecfe",
7272
"@types/chalk": "^2.2.0",
7373
"@types/csv2json": "^1.4.0",
7474
"@types/fhir": "^0.0.30",

src/form/tennis-club-membership.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ const TENNIS_CLUB_MEMBERSHIP_CERTIFICATE_COLLECTOR_FORM = defineActionForm({
399399
]
400400
},
401401
{
402-
id: 'collector.DRIVING_LICENSE.details',
402+
id: 'collector.DRIVING-LICENCE.details',
403403
type: 'TEXT',
404404
required: true,
405405
label: {
@@ -418,7 +418,7 @@ const TENNIS_CLUB_MEMBERSHIP_CERTIFICATE_COLLECTOR_FORM = defineActionForm({
418418
]
419419
},
420420
{
421-
id: 'collector.REFUGEE_NUMBER.details',
421+
id: 'collector.REFUGEE-NUMBER.details',
422422
type: 'TEXT',
423423
required: true,
424424
label: {
@@ -437,7 +437,7 @@ const TENNIS_CLUB_MEMBERSHIP_CERTIFICATE_COLLECTOR_FORM = defineActionForm({
437437
]
438438
},
439439
{
440-
id: 'collector.ALIEN_NUMBER.details',
440+
id: 'collector.ALIEN-NUMBER.details',
441441
type: 'TEXT',
442442
required: true,
443443
label: {

src/form/v2/birth/forms/pages/child.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export const child = defineFormPage({
265265
]
266266
},
267267
{
268-
id: 'child.divider_1',
268+
id: 'child.divider1',
269269
type: FieldType.DIVIDER,
270270
label: emptyMessage
271271
},
@@ -387,7 +387,7 @@ export const child = defineFormPage({
387387
}
388388
},
389389
{
390-
id: 'child.divider_2',
390+
id: 'child.divider2',
391391
type: FieldType.DIVIDER,
392392
label: emptyMessage
393393
},

src/form/v2/birth/forms/pages/father.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ export const father = defineFormPage({
413413
}
414414
},
415415
{
416-
id: 'father.addressDivider_2',
416+
id: 'father.addressDivider2',
417417
type: FieldType.DIVIDER,
418418
label: emptyMessage,
419419
conditionals: [

src/form/v2/birth/forms/pages/informant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export const informant = defineFormPage({
363363
parent: field('informant.relation')
364364
},
365365
{
366-
id: 'informant.addressDivider_1',
366+
id: 'informant.addressDivider1',
367367
type: FieldType.DIVIDER,
368368
label: emptyMessage,
369369
conditionals: [

src/form/v2/birth/forms/pages/mother.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export const mother = defineFormPage({
314314
]
315315
},
316316
{
317-
id: 'mother.addressDivider_1',
317+
id: 'mother.addressDivider1',
318318
type: FieldType.DIVIDER,
319319
label: emptyMessage,
320320
conditionals: [
@@ -380,7 +380,7 @@ export const mother = defineFormPage({
380380
}
381381
},
382382
{
383-
id: 'mother.addressDivider_2',
383+
id: 'mother.addressDivider2',
384384
type: FieldType.DIVIDER,
385385
label: emptyMessage,
386386
conditionals: [

src/form/v2/birth/forms/printForm/collector-other.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const printCertificateCollectorOther: FieldConfig[] = [
156156
validation: [nationalIdValidator('collector.nid')]
157157
},
158158
{
159-
id: 'collector.DRIVING_LICENSE.details',
159+
id: 'collector.DRIVING-LICENCE.details',
160160
type: FieldType.TEXT,
161161
required: true,
162162
label: {
@@ -196,7 +196,7 @@ export const printCertificateCollectorOther: FieldConfig[] = [
196196
]
197197
},
198198
{
199-
id: 'collector.REFUGEE_NUMBER.details',
199+
id: 'collector.REFUGEE-NUMBER.details',
200200
type: FieldType.TEXT,
201201
required: true,
202202
label: {
@@ -215,7 +215,7 @@ export const printCertificateCollectorOther: FieldConfig[] = [
215215
]
216216
},
217217
{
218-
id: 'collector.ALIEN_NUMBER.details',
218+
id: 'collector.ALIEN-NUMBER.details',
219219
type: FieldType.TEXT,
220220
required: true,
221221
label: {

src/form/v2/death/forms/pages/eventDetails.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export const eventDetails = defineFormPage({
270270
]
271271
},
272272
{
273-
id: 'eventDetails.divider_1',
273+
id: 'eventDetails.divider1',
274274
type: FieldType.DIVIDER,
275275
label: emptyMessage
276276
},
@@ -285,7 +285,7 @@ export const eventDetails = defineFormPage({
285285
configuration: { styles: { fontVariant: 'h3' } }
286286
},
287287
{
288-
id: 'eventDetails.divider_2',
288+
id: 'eventDetails.divider2',
289289
type: FieldType.DIVIDER,
290290
label: emptyMessage
291291
},

src/form/v2/death/forms/pages/informant.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ export const informant = defineFormPage({
389389
]
390390
},
391391
{
392-
id: 'informant.addressDivider_1',
392+
id: 'informant.addressDivider1',
393393
type: FieldType.DIVIDER,
394394
label: emptyMessage,
395395
conditionals: [
@@ -466,7 +466,7 @@ export const informant = defineFormPage({
466466
parent: field('informant.relation')
467467
},
468468
{
469-
id: 'informant.addressDivider_2',
469+
id: 'informant.addressDivider2',
470470
type: FieldType.DIVIDER,
471471
label: emptyMessage,
472472
conditionals: [

src/form/v2/death/forms/pages/spouse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export const spouse = defineFormPage({
304304
]
305305
},
306306
{
307-
id: 'spouse.addressDivider_1',
307+
id: 'spouse.addressDivider1',
308308
type: FieldType.DIVIDER,
309309
label: emptyMessage,
310310
conditionals: [
@@ -400,7 +400,7 @@ export const spouse = defineFormPage({
400400
}
401401
},
402402
{
403-
id: 'spouse.addressDivider_2',
403+
id: 'spouse.addressDivider2',
404404
type: FieldType.DIVIDER,
405405
label: emptyMessage,
406406
conditionals: [

0 commit comments

Comments
 (0)