mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Comply to react-router's history changes
This commit is contained in:
parent
960e16475b
commit
8a5a192d24
@ -1,12 +1,12 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import useBasename from 'history/lib/useBasename';
|
import { useRouterHistory } from 'react-router';
|
||||||
import useQueries from 'history/lib/useQueries';
|
|
||||||
import createBrowserHistory from 'history/lib/createBrowserHistory';
|
import createBrowserHistory from 'history/lib/createBrowserHistory';
|
||||||
|
|
||||||
import AppConstants from './constants/application_constants';
|
import AppConstants from './constants/application_constants';
|
||||||
|
|
||||||
|
|
||||||
const history = useBasename(useQueries(createBrowserHistory))({
|
const history = useRouterHistory(createBrowserHistory)({
|
||||||
basename: AppConstants.baseUrl
|
basename: AppConstants.baseUrl
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user