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 = () => {