Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 922f37c

Browse files
committed
Removing propTypes warnings for invalid prop type "store"
1 parent 9e5df19 commit 922f37c

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

src/components/errors-component.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ const propTypes = {
5050
PropTypes.bool,
5151
PropTypes.arrayOf(PropTypes.string),
5252
]),
53+
store: PropTypes.shape({
54+
subscribe: PropTypes.func,
55+
dispatch: PropTypes.func,
56+
getState: PropTypes.func,
57+
}),
5358
};
5459

5560
function showErrors(field, form, show = true) {

src/components/field-component.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ const fieldPropTypes = {
6060

6161
// Calculated props
6262
fieldValue: PropTypes.object,
63+
store: PropTypes.shape({
64+
subscribe: PropTypes.func,
65+
dispatch: PropTypes.func,
66+
getState: PropTypes.func,
67+
}),
6368
};
6469

6570
function getControlType(control, props, options) {

src/components/fieldset-component.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ const propTypes = {
77
model: PropTypes.string.isRequired,
88
component: PropTypes.any,
99
dispatch: PropTypes.func,
10+
store: PropTypes.shape({
11+
subscribe: PropTypes.func,
12+
dispatch: PropTypes.func,
13+
getState: PropTypes.func,
14+
}),
1015
};
1116

1217
class Fieldset extends Component {

0 commit comments

Comments
 (0)