Skip to content

Commit 5b7b8f5

Browse files
committed
Remove non needed MenuLayout.Provide
1 parent 1bb36be commit 5b7b8f5

1 file changed

Lines changed: 23 additions & 26 deletions

File tree

src/containers/App/index.tsx

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
PractitionerDetails,
99
PractitionerList,
1010
} from '@beda.software/emr/containers';
11-
import { MenuLayout } from '@beda.software/emr/dist/components/BaseLayout/Sidebar/SidebarTop/context';
1211

1312
import { useApp } from './hooks';
1413
import { menuLayout } from './layout';
@@ -23,30 +22,28 @@ export function App() {
2322
const { sharedUserInitService, setAuthProvider } = useApp();
2423

2524
return (
26-
<MenuLayout.Provider value={menuLayout}>
27-
<EMR
28-
authenticatedRoutes={
29-
<>
30-
<Route path="/practitioners" element={<PractitionerList />} />
31-
<Route path="/practitioners/:id/*" element={<PractitionerDetails />} />
32-
<Route path="/healthcare-services" element={<HealthcareServiceList />} />
33-
<Route path="/organizations" element={<OrganizationResourceList />} />
34-
<Route path="/locations" element={<LocationResourceList />} />
35-
<Route path="/patients" element={<PatientResourceList />} />
36-
<Route path="/patients/:id/encounter/:encounter/*" element={<EncounterPage />} />
37-
<Route path="/patients/:id/*" element={<PatientDetails />} />
38-
</>
39-
}
40-
anonymousRoutes={
41-
<>
42-
<Route path="/signin" element={<SignIn onSwitchService={setAuthProvider} />} />
43-
<Route path="/auth" element={<CodeGrantAuth />} />
44-
<Route path="/auth-aidbox" element={<ImplicitGrantAuth />} />
45-
</>
46-
}
47-
populateUserInfoSharedState={sharedUserInitService}
48-
menuLayout={menuLayout}
49-
/>
50-
</MenuLayout.Provider>
25+
<EMR
26+
authenticatedRoutes={
27+
<>
28+
<Route path="/practitioners" element={<PractitionerList />} />
29+
<Route path="/practitioners/:id/*" element={<PractitionerDetails />} />
30+
<Route path="/healthcare-services" element={<HealthcareServiceList />} />
31+
<Route path="/organizations" element={<OrganizationResourceList />} />
32+
<Route path="/locations" element={<LocationResourceList />} />
33+
<Route path="/patients" element={<PatientResourceList />} />
34+
<Route path="/patients/:id/encounter/:encounter/*" element={<EncounterPage />} />
35+
<Route path="/patients/:id/*" element={<PatientDetails />} />
36+
</>
37+
}
38+
anonymousRoutes={
39+
<>
40+
<Route path="/signin" element={<SignIn onSwitchService={setAuthProvider} />} />
41+
<Route path="/auth" element={<CodeGrantAuth />} />
42+
<Route path="/auth-aidbox" element={<ImplicitGrantAuth />} />
43+
</>
44+
}
45+
populateUserInfoSharedState={sharedUserInitService}
46+
menuLayout={menuLayout}
47+
/>
5148
);
5249
}

0 commit comments

Comments
 (0)