Commit a34eabee8f1d06d0d8190fdc09d638f544d00dca
s/todo-list/todos
Michael Williams committed on 11/28/2015, 10:41:09 AMParent: 7d30006981236017db174b04d89678ae7c52077e
Files changed
app/containers/todo-list.js | deleted |
app/containers/todos.js | added |
app/routes.js | changed |
app/containers/todo-list.js | ||
---|---|---|
@@ -1,15 +1,0 @@ | ||
1 | -const React = require('react') | |
2 | -const { connect } = require('react-redux') | |
3 | - | |
4 | -class TodoList extends React.Component { | |
5 | - render () { | |
6 | - return <div> | |
7 | - todo list! | |
8 | - </div> | |
9 | - } | |
10 | -} | |
11 | - | |
12 | -module.exports = connect( | |
13 | - TodoList, | |
14 | - (state) => { return {} } | |
15 | -) |
app/containers/todos.js | ||
---|---|---|
@@ -1,0 +1,15 @@ | ||
1 | +const React = require('react') | |
2 | +const { connect } = require('react-redux') | |
3 | + | |
4 | +class Todos extends React.Component { | |
5 | + render () { | |
6 | + return <div> | |
7 | + todo list! | |
8 | + </div> | |
9 | + } | |
10 | +} | |
11 | + | |
12 | +module.exports = connect( | |
13 | + Todos, | |
14 | + (state) => { return {} } | |
15 | +) |
app/routes.js | ||
---|---|---|
@@ -1,14 +1,14 @@ | ||
1 | 1 | const React = require('react') |
2 | 2 | const { Route } = require('react-router') |
3 | 3 | |
4 | 4 | const App = require('app/containers/app') |
5 | -const TodoList = require('app/containers/todo-list') | |
5 | +const Todos = require('app/containers/todos') | |
6 | 6 | const NoMatch = require('app/containers/no-match') |
7 | 7 | |
8 | 8 | const routes = ( |
9 | 9 | <Route path='/' component={App}> |
10 | - <Route path='todos' component={TodoList} /> | |
10 | + <Route path='todos' component={Todos} /> | |
11 | 11 | <Route path="*" component={NoMatch} /> |
12 | 12 | </Route> |
13 | 13 | ) |
14 | 14 |
Built with git-ssb-web