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:
committed by
Facebook Github Bot
parent
40359a9b68
commit
c33dbce242
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user