import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; import { icons } from 'Helpers/Props'; import Icon from 'Components/Icon'; import Label from 'Components/Label'; import IconButton from 'Components/Link/IconButton'; import CheckInput from 'Components/Form/CheckInput'; import TextInput from 'Components/Form/TextInput'; import QualityProfileItemDragSource from './QualityProfileItemDragSource'; import styles from './QualityProfileItemGroup.css'; class QualityProfileItemGroup extends Component { // // Listeners onAllowedChange = ({ value }) => { const { groupId, onItemGroupAllowedChange } = this.props; onItemGroupAllowedChange(groupId, value); } onNameChange = ({ value }) => { const { groupId, onItemGroupNameChange } = this.props; onItemGroupNameChange(groupId, value); } onDeleteGroupPress = ({ value }) => { const { groupId, onDeleteGroupPress } = this.props; onDeleteGroupPress(groupId, value); } // // Render render() { const { editGroups, groupId, name, allowed, items, qualityIndex, isDragging, isDraggingUp, isDraggingDown, connectDragSource, onQualityProfileItemAllowedChange, onQualityProfileItemDragMove, onQualityProfileItemDragEnd } = this.props; return (