Skip to content

Commit

Permalink
Merge pull request Expensify#13669 from Expensify/cmartins-disableChe…
Browse files Browse the repository at this point in the history
…ckbox

Change to disabled cursor when hovering disabled checkbox
  • Loading branch information
grgia authored Dec 20, 2022
2 parents 3a59770 + 2ab2bca commit eec9bf6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class CheckboxWithTooltipForMobileWebAndNative extends React.Component {
<Checkbox
isChecked={this.props.isChecked}
onPress={this.showGrowlOrTriggerOnPress}
disabled={this.props.disabled}
/>
</View>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ const propTypes = {
/** Container styles */
style: stylePropTypes,

/** Wheter the checkbox is disabled */
disabled: PropTypes.bool,

/** Props inherited from withWindowDimensions */
...windowDimensionsPropTypes,
};
Expand Down
3 changes: 2 additions & 1 deletion src/components/CheckboxWithTooltip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ const CheckboxWithTooltip = (props) => {
onPress={props.onPress}
text={props.text}
toggleTooltip={props.toggleTooltip}
disabled={props.disabled}
/>
);
}
const checkbox = (
<Checkbox
isChecked={props.isChecked}
onPress={props.onPress}
disabled={props.toggleTooltip}
disabled={props.disabled}
/>
);
return (
Expand Down

0 comments on commit eec9bf6

Please sign in to comment.