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

Commit

Permalink
fix(navigation): align quick menu with sidebar and mobile version
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkramer authored Sep 1, 2020
1 parent 6ca4b59 commit 0187c34
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions src/shared/components/navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ const Navbar = () => {
const addPages = [
pageMap.newPatient,
pageMap.newAppointment,
pageMap.newLab,
pageMap.newMedication,
pageMap.newIncident,
pageMap.newLab,
pageMap.newImaging,
pageMap.newIncident,
]

return (
Expand Down
42 changes: 21 additions & 21 deletions src/shared/components/navbar/pageMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ const pageMap: {
path: '/appointments',
icon: 'appointment',
},
newMedication: {
permission: Permissions.RequestMedication,
label: 'medications.requests.new',
path: '/medications/new',
icon: 'add',
},
viewMedications: {
permission: Permissions.ViewMedications,
label: 'medications.requests.label',
path: '/medications',
icon: 'medication',
},
newLab: {
permission: Permissions.RequestLab,
label: 'labs.requests.new',
Expand All @@ -47,17 +59,17 @@ const pageMap: {
path: '/labs',
icon: 'lab',
},
newMedication: {
permission: Permissions.RequestMedication,
label: 'medications.requests.new',
path: '/medications/new',
newImaging: {
permission: Permissions.RequestImaging,
label: 'imagings.requests.new',
path: '/imaging/new',
icon: 'add',
},
viewMedications: {
permission: Permissions.ViewMedications,
label: 'medications.requests.label',
path: '/medications',
icon: 'medication',
viewImagings: {
permission: Permissions.ReadPatients,
label: 'imagings.requests.label',
path: '/imaging',
icon: 'image',
},
newIncident: {
permission: Permissions.ReportIncident,
Expand All @@ -83,18 +95,6 @@ const pageMap: {
path: '/visits',
icon: 'visit',
},
newImaging: {
permission: Permissions.RequestImaging,
label: 'imagings.requests.new',
path: '/imaging/new',
icon: 'add',
},
viewImagings: {
permission: Permissions.ReadPatients,
label: 'imagings.requests.label',
path: '/imaging',
icon: 'image',
},
settings: {
permission: null,
label: 'settings.label',
Expand Down

0 comments on commit 0187c34

Please sign in to comment.