web: components: Removed isRequired from onClick Button for Redux Form
This commit is contained in:
parent
f0063afabe
commit
3c5630cf84
@ -207,7 +207,7 @@ Button.propTypes = {
|
||||
isDisabled: PropTypes.bool,
|
||||
isLoading: PropTypes.bool,
|
||||
|
||||
onClick: PropTypes.func.isRequired,
|
||||
onClick: PropTypes.func,
|
||||
};
|
||||
|
||||
Button.defaultProps = {
|
||||
|
@ -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 |
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user