From 0968c2840b2f02288e5ce79103cc227b610932ce Mon Sep 17 00:00:00 2001 From: alti21 Date: Mon, 2 Mar 2020 19:52:40 -0800 Subject: [PATCH] fix(appointments): changed appointment type 'Walk Up' to 'Walk In' --- .../scheduling/appointments/AppointmentDetailForm.test.tsx | 4 ++-- src/locales/en-US/translation.json | 2 +- src/scheduling/appointments/AppointmentDetailForm.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/__tests__/scheduling/appointments/AppointmentDetailForm.test.tsx b/src/__tests__/scheduling/appointments/AppointmentDetailForm.test.tsx index 887173c3ba..fb993888a5 100644 --- a/src/__tests__/scheduling/appointments/AppointmentDetailForm.test.tsx +++ b/src/__tests__/scheduling/appointments/AppointmentDetailForm.test.tsx @@ -78,8 +78,8 @@ describe('AppointmentDetailForm', () => { expect(typeSelect.prop('options')[2].value).toEqual('follow up') expect(typeSelect.prop('options')[3].label).toEqual('scheduling.appointment.types.routine') expect(typeSelect.prop('options')[3].value).toEqual('routine') - expect(typeSelect.prop('options')[4].label).toEqual('scheduling.appointment.types.walkUp') - expect(typeSelect.prop('options')[4].value).toEqual('walk up') + expect(typeSelect.prop('options')[4].label).toEqual('scheduling.appointment.types.walkIn') + expect(typeSelect.prop('options')[4].value).toEqual('walk in') expect(typeSelect.prop('value')).toEqual(expectedAppointment.type) }) diff --git a/src/locales/en-US/translation.json b/src/locales/en-US/translation.json index ce5f335d98..f211f6eddc 100644 --- a/src/locales/en-US/translation.json +++ b/src/locales/en-US/translation.json @@ -105,7 +105,7 @@ "emergency": "Emergency", "followUp": "Follow Up", "routine": "Routine", - "walkUp": "Walk Up" + "walkIn": "Walk In" }, "errors": { "patientRequired": "Patient is required.", diff --git a/src/scheduling/appointments/AppointmentDetailForm.tsx b/src/scheduling/appointments/AppointmentDetailForm.tsx index 0b6c1c64ef..d30758394c 100644 --- a/src/scheduling/appointments/AppointmentDetailForm.tsx +++ b/src/scheduling/appointments/AppointmentDetailForm.tsx @@ -101,7 +101,7 @@ const AppointmentDetailForm = (props: Props) => { { label: t('scheduling.appointment.types.emergency'), value: 'emergency' }, { label: t('scheduling.appointment.types.followUp'), value: 'follow up' }, { label: t('scheduling.appointment.types.routine'), value: 'routine' }, - { label: t('scheduling.appointment.types.walkUp'), value: 'walk up' }, + { label: t('scheduling.appointment.types.walkIn'), value: 'walk in' }, ]} onChange={(event: React.ChangeEvent) => { onSelectChange(event, 'type')