From f817fb9b3b815e6e5caef99c9ede6ffa554f3eef Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Wed, 25 Oct 2017 18:54:29 -0500 Subject: [PATCH] feature(channels route): hook up bare bones channels route --- app/routes.js | 2 ++ app/routes/channels/components/Channels.js | 25 +++++++++++++++++++ app/routes/channels/components/Channels.scss | 0 .../channels/containers/ChannelsContainer.js | 12 +++++++++ app/routes/channels/index.js | 3 +++ 5 files changed, 42 insertions(+) create mode 100644 app/routes/channels/components/Channels.js create mode 100644 app/routes/channels/components/Channels.scss create mode 100644 app/routes/channels/containers/ChannelsContainer.js create mode 100644 app/routes/channels/index.js diff --git a/app/routes.js b/app/routes.js index 5e3bb10b..d700389d 100644 --- a/app/routes.js +++ b/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 () => ( + diff --git a/app/routes/channels/components/Channels.js b/app/routes/channels/components/Channels.js new file mode 100644 index 00000000..e11cf3d1 --- /dev/null +++ b/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 ( +
+ channels +
+ ) + } +} + +Channels.propTypes = { + +} + +export default Channels diff --git a/app/routes/channels/components/Channels.scss b/app/routes/channels/components/Channels.scss new file mode 100644 index 00000000..e69de29b diff --git a/app/routes/channels/containers/ChannelsContainer.js b/app/routes/channels/containers/ChannelsContainer.js new file mode 100644 index 00000000..6a98ed3a --- /dev/null +++ b/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)) diff --git a/app/routes/channels/index.js b/app/routes/channels/index.js new file mode 100644 index 00000000..b9ed6125 --- /dev/null +++ b/app/routes/channels/index.js @@ -0,0 +1,3 @@ +import ChannelsContainer from './containers/ChannelsContainer' + +export default ChannelsContainer