Skip to content

Commit 384f3c3

Browse files
committed
Fix prop types for TodoStore
1 parent 40f9e84 commit 384f3c3

File tree

6 files changed

+22
-12
lines changed

6 files changed

+22
-12
lines changed

package-lock.json

Lines changed: 17 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/TodoItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const TodoItem = inject('TodoStore')(observer(props => {
4545
);
4646
}));
4747

48-
TodoItem.propTypes = {
48+
TodoItem.wrappedComponent.propTypes = {
4949
todo: PropTypes.object.isRequired,
5050
TodoStore: PropTypes.object.isRequired,
5151
};

src/components/TodosCheckAll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const TodosCheckAll = inject('TodoStore')(observer(props => {
1111
);
1212
}));
1313

14-
TodosCheckAll.propTypes = {
14+
TodosCheckAll.wrappedComponent.propTypes = {
1515
TodoStore: PropTypes.object.isRequired,
1616
};
1717

src/components/TodosClearCompleted.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const TodosClearCompleted = inject('TodoStore')(observer(props => {
1111
);
1212
}));
1313

14-
TodosClearCompleted.propTypes = {
14+
TodosClearCompleted.wrappedComponent.propTypes = {
1515
TodoStore: PropTypes.object.isRequired,
1616
};
1717

src/components/TodosFiltered.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const TodosFiltered = inject('TodoStore')(observer(props => {
3232
);
3333
}));
3434

35-
TodosFiltered.propTypes = {
35+
TodosFiltered.wrappedComponent.propTypes = {
3636
TodoStore: PropTypes.object.isRequired,
3737
};
3838

src/components/TodosRemaining.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const TodosRemaining = inject('TodoStore')(observer(props => {
1010
);
1111
}));
1212

13-
TodosRemaining.propTypes = {
13+
TodosRemaining.wrappedComponent.propTypes = {
1414
TodoStore: PropTypes.object.isRequired,
1515
}
1616

0 commit comments

Comments
 (0)