Skip to content

Commit c1412cf

Browse files
author
Marco Cesarato
committed
refactor: change props for elements names
1 parent bc24e4c commit c1412cf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ class InputSpinner extends Component {
755755
disabled={this._isDisabledButtonLeft()}
756756
style={buttonStyle}
757757
onPress={() => this.decrease()}
758-
{...this.props.leftElementProps}>
758+
{...this.props.leftButtonProps}>
759759
{this._renderLeftButtonElement()}
760760
</TouchableHighlight>
761761
);
@@ -790,7 +790,7 @@ class InputSpinner extends Component {
790790
disabled={this._isDisabledButtonRight()}
791791
style={buttonStyle}
792792
onPress={() => this.increase()}
793-
{...this.props.rightElementProps}>
793+
{...this.props.rightButtonProps}>
794794
{this._renderRightButtonElement()}
795795
</TouchableHighlight>
796796
);
@@ -895,9 +895,9 @@ InputSpinner.propTypes = {
895895
prepend: PropTypes.element,
896896
decimalSeparator: PropTypes.string,
897897
containerProps: PropTypes.object,
898-
leftElementProps: PropTypes.object,
899898
inputProps: PropTypes.object,
900-
rightElementProps: PropTypes.object,
899+
leftButtonProps: PropTypes.object,
900+
rightButtonProps: PropTypes.object,
901901
};
902902

903903
InputSpinner.defaultProps = {
@@ -944,9 +944,9 @@ InputSpinner.defaultProps = {
944944
style: {},
945945
decimalSeparator: ".",
946946
containerProps: {},
947-
leftElementProps: {},
948947
inputProps: {},
949-
rightElementProps: {},
948+
leftButtonProps: {},
949+
rightButtonProps: {},
950950
};
951951

952952
export default InputSpinner;

0 commit comments

Comments
 (0)