Skip to content

Commit

Permalink
work on forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Rasmussen committed Jul 30, 2015
1 parent de8cd01 commit 43125f0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"react-router": "v1.0.0-beta2",
"redux": "1.0.0-rc",
"redux-devtools": "0.1.2",
"redux-form": "0.0.1",
"serialize-javascript": "^1.0.0",
"serve-favicon": "^2.3.0",
"serve-static": "^1.10.0",
Expand Down
1 change: 1 addition & 0 deletions src/actions/actionTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export const AUTH_LOGOUT = 'AUTH_LOGOUT';
export const AUTH_LOGOUT_SUCCESS = 'AUTH_LOGOUT_SUCCESS';
export const AUTH_LOGOUT_FAIL = 'AUTH_LOGOUT_FAIL';
export const COUNTER_INCREMENT = 'COUNTER_INCREMENT';
export const FORM_CHANGE = 'FORM_CHANGE';
3 changes: 3 additions & 0 deletions src/reducers/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import createFormReducer from './createFormReducer';
import surveyValidation from '../validation/surveyValidation';
export info from './info';
export widgets from './widgets';
export auth from './auth';
export counter from './counter';
export const survey = createFormReducer('survey', surveyValidation);
1 change: 1 addition & 0 deletions src/views/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class App extends Component {

<ul className="nav navbar-nav">
<li><Link to="/widgets">Widgets</Link></li>
<li><Link to="/survey">Survey</Link></li>
<li><Link to="/about">About Us</Link></li>
<li><Link to="/redirect">Redirect to Home</Link></li>
{!user && <li><Link to="/login">Login</Link></li>}
Expand Down
2 changes: 2 additions & 0 deletions src/views/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Home from 'views/Home';
import Widgets from 'views/Widgets';
import About from 'views/About';
import Login from 'views/Login';
import Survey from 'views/Survey';
import NotFound from 'views/NotFound';
import Redirect from 'views/Redirect';

Expand All @@ -14,6 +15,7 @@ export default (
<Route path="/widgets" component={Widgets}/>
<Route path="/about" component={About}/>
<Route path="/login" component={Login}/>
<Route path="/survey" component={Survey}/>
<Route path="/redirect" component={Redirect} onEnter={Redirect.onEnter}/>
<Route path="*" component={NotFound}/>
</Route>
Expand Down

0 comments on commit 43125f0

Please sign in to comment.