import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Icon from 'Components/Icon'; import Link from 'Components/Link/Link'; import { icons } from 'Helpers/Props'; import CheckInput from './CheckInput'; import styles from './EnhancedSelectInputOption.css'; class EnhancedSelectInputOption extends Component { // // Listeners onPress = (e) => { e.preventDefault(); const { id, onSelect } = this.props; onSelect(id); }; onCheckPress = () => { // CheckInput requires a handler. Swallow the change event because onPress will already handle it via event propagation. }; // // Render render() { const { className, id, depth, isSelected, isDisabled, isHidden, isMultiSelect, isMobile, children } = this.props; return ( { depth !== 0 &&
} { isMultiSelect &&