From 6f5f9f97e8cf47a2f0d5ac3211d804f348ab561a Mon Sep 17 00:00:00 2001 From: Jack Meyer Date: Sat, 25 Apr 2020 23:03:59 -0500 Subject: [PATCH] fix: adds missing translations --- .../scheduling/appointments/new/NewAppointment.test.tsx | 2 +- src/locales/enUs/translations/scheduling/index.ts | 3 +++ src/scheduling/appointments/new/NewAppointment.tsx | 6 +----- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/__tests__/scheduling/appointments/new/NewAppointment.test.tsx b/src/__tests__/scheduling/appointments/new/NewAppointment.test.tsx index 74efecf25b..4b502dcd41 100644 --- a/src/__tests__/scheduling/appointments/new/NewAppointment.test.tsx +++ b/src/__tests__/scheduling/appointments/new/NewAppointment.test.tsx @@ -195,7 +195,7 @@ describe('New Appointment', () => { expect(mockedComponents.Toast).toHaveBeenCalledWith( 'success', 'states.success', - `scheduling.appointment.successfullyCreated ${expectedNewAppointment.id}`, + `scheduling.appointment.successfullyCreated`, ) }) diff --git a/src/locales/enUs/translations/scheduling/index.ts b/src/locales/enUs/translations/scheduling/index.ts index 91dd954bd7..29ef257ede 100644 --- a/src/locales/enUs/translations/scheduling/index.ts +++ b/src/locales/enUs/translations/scheduling/index.ts @@ -7,6 +7,7 @@ export default { schedule: 'Appointment Schedule', editAppointment: 'Edit Appointment', deleteAppointment: 'Delete Appointment', + viewAppointment: 'View Appointment', }, appointment: { startDate: 'Start Date', @@ -27,6 +28,8 @@ export default { }, reason: 'Reason', patient: 'Patient', + deleteConfirmationMessage: 'Are you sure that you want to delete this appointment?', + successfullyCreated: 'Successfully created appointment.', }, }, } diff --git a/src/scheduling/appointments/new/NewAppointment.tsx b/src/scheduling/appointments/new/NewAppointment.tsx index 6f8f560bd3..69f14a7307 100644 --- a/src/scheduling/appointments/new/NewAppointment.tsx +++ b/src/scheduling/appointments/new/NewAppointment.tsx @@ -42,11 +42,7 @@ const NewAppointment = () => { const onNewAppointmentSaveSuccess = (newAppointment: Appointment) => { history.push(`/appointments/${newAppointment.id}`) - Toast( - 'success', - t('states.success'), - `${t('scheduling.appointment.successfullyCreated')} ${newAppointment.id}`, - ) + Toast('success', t('states.success'), `${t('scheduling.appointment.successfullyCreated')}`) } const onSave = () => {