git ssb

1+

dinoworm ๐Ÿ› / catstack



Commit 00fce82fda471a7156efa91c8394284f90e88743

rename containers as such

Michael Williams committed on 12/28/2015, 12:23:01 AM
Parent: 8e0465732e7576207529e4e7fb9cafdda78a657d

Files changed

app/containers/app.jschanged
app/containers/landing.jschanged
app/containers/no-match.jschanged
app/containers/todos.jschanged
app/routes.jschanged
app/containers/app.jsView
@@ -1,8 +1,8 @@
11 const React = require('react')
22 const { connect } = require('react-redux')
33
4-class App extends React.Component {
4+class AppContainer extends React.Component {
55 render () {
66 const { children } = this.props
77
88 return <div>
@@ -12,6 +12,6 @@
1212 }
1313 }
1414
1515 module.exports = connect(
16- (state) => { return {} }
17-)(App)
16+ (state) => ({})
17+)(AppContainer)
app/containers/landing.jsView
@@ -1,14 +1,14 @@
11 const React = require('react')
22 const { connect } = require('react-redux')
33
4-class Landing extends React.Component {
4+class LandingContainer extends React.Component {
55 render () {
66 return <div>
77 landing!
88 </div>
99 }
1010 }
1111
1212 module.exports = connect(
13- (state) => { return {} }
14-)(Landing)
13+ (state) => ({})
14+)(LandingContainer)
app/containers/no-match.jsView
@@ -1,14 +1,14 @@
11 const React = require('react')
22 const { connect } = require('react-redux')
33
4-class NoMatch extends React.Component {
4+class NoMatchContainer extends React.Component {
55 render () {
66 return <div>
77 no match!
88 </div>
99 }
1010 }
1111
1212 module.exports = connect(
13- (state) => { return {} }
14-)(NoMatch)
13+ (state) => ({})
14+)(NoMatchContainer)
app/containers/todos.jsView
@@ -1,14 +1,14 @@
11 const React = require('react')
22 const { connect } = require('react-redux')
33
4-class Todos extends React.Component {
4+class TodosContainer extends React.Component {
55 render () {
66 return <div>
77 todo list!
88 </div>
99 }
1010 }
1111
1212 module.exports = connect(
13- (state) => { return {} }
14-)(Todos)
13+ (state) => ({})
14+)(TodosContainer)
app/routes.jsView
@@ -1,17 +1,17 @@
11 const React = require('react')
22 const { Route, IndexRoute } = require('react-router')
33
4-const App = require('app/containers/app')
5-const Landing = require('app/containers/landing')
6-const Todos = require('app/containers/todos')
7-const NoMatch = require('app/containers/no-match')
4+const AppContainer = require('app/containers/app')
5+const LandingContainer = require('app/containers/landing')
6+const TodosContainer = require('app/containers/todos')
7+const NoMatchContainer = require('app/containers/no-match')
88
99 const routes = (
10- <Route path='/' component={App}>
11- <IndexRoute component={Landing} />
12- <Route path='todos' component={Todos} />
13- <Route path="*" component={NoMatch} />
10+ <Route path='/' component={AppContainer}>
11+ <IndexRoute component={LandingContainer} />
12+ <Route path='todos' component={TodosContainer} />
13+ <Route path="*" component={NoMatchContainer} />
1414 </Route>
1515 )
1616
1717 module.exports = routes

Built with git-ssb-web