mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-17 10:39:09 +00:00
chore: remove react-redux-router
This commit is contained in:
parent
77f81dc8b6
commit
86c31126e8
6 changed files with 6 additions and 16 deletions
|
@ -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`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue