Migration d'un import de history

Supprime le message de warning dans la console au démarrage
pull/668/head
Maxime Quandalle 2019-09-11 10:02:24 +02:00
parent 0663c97204
commit 88cfd47a20
1 changed files with 2 additions and 2 deletions

View File

@ -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)