web: Components: Formatted code
This commit is contained in:
parent
1ff4c9d80f
commit
5b9d02bcc3
@ -3,11 +3,22 @@ import PropTypes from "prop-types";
|
||||
import Checkbox from "../../checkbox";
|
||||
import Link from "../../link";
|
||||
|
||||
const ADSelectorRow = props => {
|
||||
const { label, isChecked, style, onChange, onSelect, isMultiSelect, isSelected } = props;
|
||||
class ADSelectorRow extends React.Component {
|
||||
render() {
|
||||
const {
|
||||
label,
|
||||
isChecked,
|
||||
style,
|
||||
onChange,
|
||||
onSelect,
|
||||
isMultiSelect,
|
||||
isSelected
|
||||
} = this.props;
|
||||
|
||||
console.log("ADSelectorRow render", label, isChecked);
|
||||
|
||||
return (
|
||||
<div className={`option ${isSelected && 'selected'}`} style={style}>
|
||||
<div className={`option ${isSelected && "selected"}`} style={style}>
|
||||
{isMultiSelect ? (
|
||||
<Checkbox
|
||||
label={label}
|
||||
@ -27,7 +38,8 @@ const ADSelectorRow = props => {
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
ADSelectorRow.propTypes = {
|
||||
label: PropTypes.string,
|
||||
|
Loading…
Reference in New Issue
Block a user