mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 18:29:08 +00:00
sync: full redux retrofit done
This commit is contained in:
parent
cfc623b228
commit
f5220aa6dc
14 changed files with 206 additions and 122 deletions
|
@ -1,5 +1,6 @@
|
|||
import React, { Component, Fragment } from 'react'
|
||||
import { Route } from 'react-router-dom'
|
||||
import { connect } from 'react-redux'
|
||||
|
||||
import Servers from '../components/servers'
|
||||
import OauthCallback from '../components/oauth-callback'
|
||||
|
@ -7,8 +8,13 @@ import OauthFlow from '../components/oauth-flow'
|
|||
|
||||
const aaa = (props) => (<div>{ JSON.stringify(props) }</div>)
|
||||
|
||||
@connect(({ appState }) => ({ ready: appState.ready }))
|
||||
export default class AppRouter extends Component {
|
||||
render () {
|
||||
if (!this.props.ready) {
|
||||
return null
|
||||
}
|
||||
|
||||
return <Fragment>
|
||||
<Route exact path='/' component={aaa} />
|
||||
<Route path='/s' component={Servers} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue