Commit b58dcbd6 authored by Axel Bocciarelli's avatar Axel Bocciarelli

Fix router switch

parent 868122d9
Pipeline #32565 passed with stage
in 3 minutes and 20 seconds
......@@ -134,44 +134,47 @@ function App() {
{isSampleTrackingEnabled && (
<Route exact path="/addresses" component={AddressesPage} />
)}
<LoadingBoundary message="Loading investigation..." spacedOut>
<Route
exact
path="/investigation/:investigationId/datasets"
render={({ match }) =>
UI.investigationContainer.isDatasetListVisible ? (
<DatasetsPage />
) : (
<Redirect
to={`/investigation/${match.params.investigationId}/events`}
/>
)
}
/>
<Route
exact
path="/investigation/:investigationId/events/tagManager"
component={EventTagPage}
/>
<Route
exact
path="/investigation/:investigationId/events"
component={EventsPage}
/>
{isSampleTrackingEnabled && (
<Route path="/investigation">
<LoadingBoundary message="Loading investigation..." spacedOut>
<Route
exact
path="/investigation/:investigationId/shipping"
component={ShippingPage}
path="/investigation/:investigationId/datasets"
render={({ match }) =>
UI.investigationContainer.isDatasetListVisible ? (
<DatasetsPage />
) : (
<Redirect
to={`/investigation/${match.params.investigationId}/events`}
/>
)
}
/>
)}
<Route
exact
path="/investigation/:investigationId/parcel/:parcelId"
component={ParcelPage}
/>
</LoadingBoundary>
<Route
exact
path="/investigation/:investigationId/events/tagManager"
component={EventTagPage}
/>
<Route
exact
path="/investigation/:investigationId/events"
component={EventsPage}
/>
{isSampleTrackingEnabled && (
<Route
exact
path="/investigation/:investigationId/shipping"
component={ShippingPage}
/>
)}
<Route
exact
path="/investigation/:investigationId/parcel/:parcelId"
component={ParcelPage}
/>
</LoadingBoundary>
</Route>
<Route exact path="/selection" component={SelectionPage} />
<Route exact path="/selection/mint" component={MintSelectionPage} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment