Browse Source

Fix method argument name

pull/13942/head
Maciej Czekaj 6 years ago
committed by 偏右
parent
commit
72ee25aa4f
  1. 2
      components/button/button.tsx

2
components/button/button.tsx

@ -103,7 +103,7 @@ class Button extends React.Component<ButtonProps, ButtonState> {
block: PropTypes.bool, block: PropTypes.bool,
}; };
static getDerivedStateFromProps(nextProps: ButtonProps, _prevState: ButtonState) { static getDerivedStateFromProps(nextProps: ButtonProps, prevState: ButtonState) {
if (nextProps.loading instanceof Boolean) { if (nextProps.loading instanceof Boolean) {
return {loading: nextProps.loading} return {loading: nextProps.loading}
} }

Loading…
Cancel
Save