| |
@@ -76,8 +76,8 @@
|
| |
turnOnText: PropTypes.string,
|
| |
turnOffText: PropTypes.string,
|
| |
turnedOnText: PropTypes.string,
|
| |
- onTurnOn: PropTypes.func.isRequired,
|
| |
- onTurnOff: PropTypes.func.isRequired,
|
| |
+ onTurnOn: PropTypes.func,
|
| |
+ onTurnOff: PropTypes.func,
|
| |
titleText: PropTypes.string,
|
| |
disabled: PropTypes.bool,
|
| |
}
|
| |
@@ -89,6 +89,8 @@
|
| |
turnOnText: "Turn on",
|
| |
turnOffText: "Turn off",
|
| |
turnedOnText: "On",
|
| |
+ onTurnOn: () => null,
|
| |
+ onTurnOff: () => null,
|
| |
titleText: "",
|
| |
disabled: false,
|
| |
}
|
| |
The React StateButton properties were incorrect and caused errors to be printed in the console.