chore: remove react-redux-router

This commit is contained in:
Katie Thornhill 2019-11-20 00:21:47 -05:00
parent 77f81dc8b6
commit 86c31126e8
No known key found for this signature in database
GPG key ID: F76EDC6541A99644
6 changed files with 6 additions and 16 deletions

View file

@ -1,5 +1,5 @@
import superagent from 'superagent'
import { push } from 'react-router-redux'
import { history } from './router/history'
export const fetchServers = async dispatch => {
const rsp = await superagent.get('/api/servers')
@ -79,7 +79,7 @@ const poll = (dispatch, getState) => {
const upd = newServers.keySeq().toSet()
const newSrv = upd.subtract(old)
stopPolling()
dispatch(push(`/s/${newSrv.toJS()[0]}/edit`))
history.push(`/s/${newSrv.toJS()[0]}/edit`)
}
}