Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix: adds missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmeyer committed Apr 26, 2020
1 parent 5cfbc32 commit 6f5f9f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ describe('New Appointment', () => {
expect(mockedComponents.Toast).toHaveBeenCalledWith(
'success',
'states.success',
`scheduling.appointment.successfullyCreated ${expectedNewAppointment.id}`,
`scheduling.appointment.successfullyCreated`,
)
})

Expand Down
3 changes: 3 additions & 0 deletions src/locales/enUs/translations/scheduling/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
schedule: 'Appointment Schedule',
editAppointment: 'Edit Appointment',
deleteAppointment: 'Delete Appointment',
viewAppointment: 'View Appointment',
},
appointment: {
startDate: 'Start Date',
Expand All @@ -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.',
},
},
}
6 changes: 1 addition & 5 deletions src/scheduling/appointments/new/NewAppointment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 6f5f9f9

Please sign in to comment.