Migration d'un import de history
Supprime le message de warning dans la console au démarragepull/668/head
parent
0663c97204
commit
88cfd47a20
|
@ -1,7 +1,7 @@
|
|||
import { ThemeColoursProvider } from 'Components/utils/withColours'
|
||||
import { SitePathProvider } from 'Components/utils/withSitePaths'
|
||||
import { TrackerProvider } from 'Components/utils/withTracker'
|
||||
import createHistory from 'history/createBrowserHistory'
|
||||
import { createBrowserHistory } from 'history'
|
||||
import i18next from 'i18next'
|
||||
import React, { PureComponent } from 'react'
|
||||
import { I18nextProvider } from 'react-i18next'
|
||||
|
@ -35,7 +35,7 @@ if (
|
|||
export default class Provider extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
this.history = createHistory({
|
||||
this.history = createBrowserHistory({
|
||||
basename: process.env.NODE_ENV === 'production' ? '' : this.props.basename
|
||||
})
|
||||
this.props.tracker?.connectToHistory(this.history)
|
||||
|
|
Loading…
Reference in New Issue