sync: full redux retrofit done

This commit is contained in:
41666 2017-12-11 18:06:25 -06:00
parent cfc623b228
commit f5220aa6dc
14 changed files with 206 additions and 122 deletions

View file

@ -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} />