Fix styling of listview disabled items

Summary: Also improved some paddings

Reviewed By: passy

Differential Revision: D19640179

fbshipit-source-id: 44aa91d452fc857533c638e00d4fe9648592b6f2
This commit is contained in:
Michel Weststrate
2020-01-30 07:04:08 -08:00
committed by Facebook Github Bot
parent 40359a9b68
commit c33dbce242
4 changed files with 26 additions and 9 deletions

View File

@@ -16,6 +16,7 @@ type CheckboxProps = {
checked: boolean;
/** Called when a state change is triggered */
onChange: (checked: boolean) => void;
disabled?: boolean;
};
const CheckboxContainer = styled.input({
@@ -39,6 +40,7 @@ export default class Checkbox extends PureComponent<CheckboxProps> {
type="checkbox"
checked={this.props.checked}
onChange={this.onChange}
disabled={this.props.disabled}
/>
);
}