Fix wrongly passed prop to QueryParamProvider
See `use-query-params` [documentation](https://github.com/pbeshai/use-query-params/blob/d06731d0b3f07a40529fc39dc2430e1ec66bbf80/packages/use-query-params/README.md?plain=1#L52).
fixes
@@ -31,6 +31,7 @@ import _isEmpty from 'lodash/isEmpty';
import catalogEn from './locales/en/messages.js';
import catalogEs from './locales/es/messages.js';
import { dashboardTheme } from './components/util/theme.js';
+import { ReactRouter5Adapter } from 'use-query-params/adapters/react-router-5';
const appMain = document.getElementById('main');
const appData = !appMain ? {} : appMain.dataset;
@@ -121,7 +122,7 @@ const AppHTML = function() {
<CssBaseline />
<MuiThemeProvider theme={theme}>
<BrowserRouter>
- <QueryParamProvider ReactRouterRoute={Route}>
+ <QueryParamProvider adapter={ReactRouter5Adapter}>
<Switch>
<Redirect exact from={`${pathPrefix}/`} to={`${pathPrefix}/namespaces`} />
<Redirect exact from={`${pathPrefix}/overview`} to={`${pathPrefix}/namespaces`} />
