Skip to content

Commit

Permalink
Update router
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Jun 21, 2021
1 parent 02f5114 commit 19c3908
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,23 +94,23 @@ export const EngineRouter: React.FC = () => {
<Route exact path={ENGINE_PATH}>
<EngineOverview />
</Route>
{canViewEngineDocuments && (
<Route path={ENGINE_DOCUMENT_DETAIL_PATH}>
<DocumentDetail />
</Route>
)}
{canViewEngineDocuments && (
<Route path={ENGINE_DOCUMENTS_PATH}>
<Documents />
</Route>
)}
{/* TODO: Remove layout once page template migration is over */}
<Layout navigation={<AppSearchNav />}>
{canViewEngineAnalytics && (
<Route path={ENGINE_ANALYTICS_PATH}>
<AnalyticsRouter />
</Route>
)}
{canViewEngineDocuments && (
<Route path={ENGINE_DOCUMENT_DETAIL_PATH}>
<DocumentDetail />
</Route>
)}
{canViewEngineDocuments && (
<Route path={ENGINE_DOCUMENTS_PATH}>
<Documents />
</Route>
)}
{canViewEngineSchema && (
<Route path={ENGINE_SCHEMA_PATH}>
<SchemaRouter />
Expand Down

0 comments on commit 19c3908

Please sign in to comment.