Skip to content

Commit

Permalink
Merge pull request hyperledger#143 from kaleido-io/queryparams-router
Browse files Browse the repository at this point in the history
Tell QueryParamProvider we are using react router to avoid fallback h…
  • Loading branch information
peterbroadhurst authored Mar 26, 2022
2 parents 2ccb2bb + 580ac5f commit 3530459
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import React from 'react';
import { QueryClient, QueryClientProvider } from 'react-query';
import { BrowserRouter, RouteObject, useRoutes } from 'react-router-dom';
import { BrowserRouter, RouteObject, useRoutes, Route } from 'react-router-dom';
import { QueryParamProvider } from 'use-query-params';
import { ActivityRoutes } from '../pages/Activity/Routes';
import { BlockchainRoutes } from '../pages/Blockchain/Routes';
Expand All @@ -39,11 +39,11 @@ const queryClient = new QueryClient({
export const Router: () => JSX.Element = () => {
return (
<QueryClientProvider client={queryClient}>
<QueryParamProvider>
<BrowserRouter basename={NAV_BASENAME}>
<BrowserRouter basename={NAV_BASENAME}>
<QueryParamProvider ReactRouterRoute={Route}>
<Routes />
</BrowserRouter>
</QueryParamProvider>
</QueryParamProvider>
</BrowserRouter>
</QueryClientProvider>
);
};
Expand Down

0 comments on commit 3530459

Please sign in to comment.