Skip to content

Commit

Permalink
change isDisable to isDisabled
Browse files Browse the repository at this point in the history
  • Loading branch information
UpworkBartkoski committed Jan 21, 2021
1 parent 9ffa37f commit 3cf5b69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/components/TextInputFocusable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const propTypes = {
onDrop: PropTypes.func,

// If the chatswitcher is shown in iOS safari browser, the input should be disabled
isDisable: PropTypes.bool,
isDisabled: PropTypes.bool,
};

const defaultProps = {
Expand All @@ -49,7 +49,7 @@ const defaultProps = {
onDragEnter: () => {},
onDragLeave: () => {},
onDrop: () => {},
isDisable: false,
isDisabled: false,
};

/**
Expand Down Expand Up @@ -190,7 +190,6 @@ class TextInputFocusable extends React.Component {
const propStyles = StyleSheet.flatten(this.props.style);
propStyles.outline = 'none';
const propsWithoutStyles = _.omit(this.props, 'style');
const isDisable = this.props.isDisable;
return (
<TextInput
ref={el => this.textInput = el}
Expand All @@ -202,7 +201,7 @@ class TextInputFocusable extends React.Component {
style={propStyles}
/* eslint-disable-next-line react/jsx-props-no-spreading */
{...propsWithoutStyles}
disabled={isDisable}
disabled={this.props.isDisabled}
/>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class ReportActionCompose extends React.Component {
onPasteFile={file => displayFileInModal({file})}
shouldClear={this.state.textInputShouldClear}
onClear={() => this.setTextInputShouldClear(false)}
isDisable={inputDisable}
isDisabled={inputDisable}
/>

</>
Expand Down

0 comments on commit 3cf5b69

Please sign in to comment.