Skip to content
This repository was archived by the owner on Apr 11, 2019. It is now read-only.

Commit c992596

Browse files
committed
Feat: update the container generator to have proptypes
1 parent be1db21 commit c992596

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

app/src/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const routes = {
2222
},
2323
},
2424
childRoutes: [
25+
/* GENERATOR: Newly generated Routes go here */
2526
{
2627
path: '*',
2728
getComponent(location, callback) {
@@ -31,7 +32,6 @@ export const routes = {
3132
});
3233
},
3334
},
34-
/* GENERATOR: Newly generated Routes go here */
3535
],
3636
};
3737

app/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import { initialState as landing } from './containers/LandingContainer/reducer';
1313
import { initialState as app } from './containers/AppContainer/reducer';
1414

1515
const initialState = {
16-
app,
1716
/* GENERATOR: Compile all of your initial state */
17+
app,
1818
landing,
1919
};
2020

config/generators/container/index.js.hbs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component } from 'react';
1+
import React, { Component, PropTypes } from 'react';
22
{{#if wantActionsAndReducer}}
33
import { connect } from 'react-redux';
44
import { bindActionCreators } from 'redux';
@@ -26,6 +26,10 @@ class {{ properCase name }}Container extends Component { // eslint-disable-line
2626
}
2727
}
2828

29+
{{ properCase name }}Container.propTypes = {
30+
// isLoading: PropTypes.bool.isRequired,
31+
}
32+
2933
{{#if wantActionsAndReducer}}
3034
// mapStateToProps :: {State} -> {Props}
3135
const mapStateToProps = (state) => ({

0 commit comments

Comments
 (0)