web: Components: Formatted code

This commit is contained in:
Alexey Safronov 2019-10-31 17:33:55 +03:00
parent 1ff4c9d80f
commit 5b9d02bcc3

View File

@ -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,