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

Commit

Permalink
feat(patients): change the new patients route
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmeyer committed Dec 21, 2019
1 parent 9bc4365 commit 9072ac9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/containers/HospitalRun.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('HospitalRun', () => {
it('should render the new patient screen when /patients/new is accessed', () => {
const wrapper = mount(
<Provider store={store}>
<MemoryRouter initialEntries={['/new/patients']}>
<MemoryRouter initialEntries={['/patients/new']}>
<HospitalRun />
</MemoryRouter>
</Provider>,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Navbar = () => {
{
label: t('actions.new'),
onClick: () => {
history.push('/new/patients')
history.push('/patients/new')
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/containers/HospitalRun.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const HospitalRun = () => {
<PrivateRoute
isAuthenticated={permissions.includes(Permissions.WritePatients)}
exact
path="/new/patients"
path="/patients/new"
component={NewPatient}
/>
<PrivateRoute
Expand Down

0 comments on commit 9072ac9

Please sign in to comment.