Browse Source

feature(channels route): hook up bare bones channels route

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
f817fb9b3b
  1. 2
      app/routes.js
  2. 25
      app/routes/channels/components/Channels.js
  3. 0
      app/routes/channels/components/Channels.scss
  4. 12
      app/routes/channels/containers/ChannelsContainer.js
  5. 3
      app/routes/channels/index.js

2
app/routes.js

@ -4,11 +4,13 @@ import { Switch, Route } from 'react-router'
import App from './routes/app'
import Activity from './routes/activity'
import Wallet from './routes/wallet'
import Channels from './routes/channels'
export default () => (
<App>
<Switch>
<Route path='/wallet' component={Wallet} />
<Route path='/channels' component={Channels} />
<Route path='/' component={Activity} />
</Switch>
</App>

25
app/routes/channels/components/Channels.js

@ -0,0 +1,25 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import styles from './Channels.scss'
class Channels extends Component {
componentWillMount() {}
render() {
const {
} = this.props
return (
<div>
channels
</div>
)
}
}
Channels.propTypes = {
}
export default Channels

0
app/routes/channels/components/Channels.scss

12
app/routes/channels/containers/ChannelsContainer.js

@ -0,0 +1,12 @@
import { withRouter } from 'react-router'
import { connect } from 'react-redux'
import Channels from '../components/Channels'
const mapDispatchToProps = {
}
const mapStateToProps = state => ({
})
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Channels))

3
app/routes/channels/index.js

@ -0,0 +1,3 @@
import ChannelsContainer from './containers/ChannelsContainer'
export default ChannelsContainer
Loading…
Cancel
Save