diff options
author | Thibaut Girka <thib@sitedethib.com> | 2020-04-09 16:12:28 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2020-04-09 17:03:05 +0200 |
commit | 5d2cdeb2255f49abd7756e5e6d94b16ad1f7df90 (patch) | |
tree | ee26fa76d04874421781a3b1e6970410d422e0ce /app/javascript/flavours/glitch | |
parent | c47be5bd864a1f5244f35122ba7fae31a149c73d (diff) |
Fix deprecated use of createBrowserHistory
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r-- | app/javascript/flavours/glitch/components/modal_root.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/components/modal_root.js b/app/javascript/flavours/glitch/components/modal_root.js index f9877d5ea..8d73a1e40 100644 --- a/app/javascript/flavours/glitch/components/modal_root.js +++ b/app/javascript/flavours/glitch/components/modal_root.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import 'wicg-inert'; -import createHistory from 'history/createBrowserHistory'; +import { createBrowserHistory } from 'history'; export default class ModalRoot extends React.PureComponent { static contextTypes = { @@ -51,7 +51,7 @@ export default class ModalRoot extends React.PureComponent { componentDidMount () { window.addEventListener('keyup', this.handleKeyUp, false); window.addEventListener('keydown', this.handleKeyDown, false); - this.history = this.context.router ? this.context.router.history : createHistory(); + this.history = this.context.router ? this.context.router.history : createBrowserHistory(); } componentWillReceiveProps (nextProps) { |