web: components: Removed isRequired from onClick Button for Redux Form

This commit is contained in:
Alexey Safronov 2019-07-31 21:19:34 +03:00
parent f0063afabe
commit 3c5630cf84
2 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ Button.propTypes = {
isDisabled: PropTypes.bool,
isLoading: PropTypes.bool,
onClick: PropTypes.func.isRequired,
onClick: PropTypes.func,
};
Button.defaultProps = {

View File

@ -26,5 +26,5 @@ Button is used for a action on a page.
| `scale` | `bool` | - | - | false | Scale width of button to 100% |
| `isDisabled` | `bool` | - | - | - | Tells when the button should present a disabled state |
| `isLoading` | `bool` | - | - | - | Tells when the button should show loader icon |
| `onClick` | `func` | | - | - | What the button will trigger when clicked |
| `onClick` | `func` | - | - | - | What the button will trigger when clicked |