import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { icons } from 'Helpers/Props'; import FieldSet from 'Components/FieldSet'; import Card from 'Components/Card'; import Icon from 'Components/Icon'; import PageSectionContent from 'Components/Page/PageSectionContent'; import QualityProfile from './QualityProfile'; import EditQualityProfileModalConnector from './EditQualityProfileModalConnector'; import styles from './QualityProfiles.css'; class QualityProfiles extends Component { // // Lifecycle constructor(props, context) { super(props, context); this.state = { isQualityProfileModalOpen: false }; } // // Listeners onCloneQualityProfilePress = (id) => { this.props.onCloneQualityProfilePress(id); this.setState({ isQualityProfileModalOpen: true }); } onEditQualityProfilePress = () => { this.setState({ isQualityProfileModalOpen: true }); } onModalClose = () => { this.setState({ isQualityProfileModalOpen: false }); } // // Render render() { const { items, isDeleting, onConfirmDeleteQualityProfile, ...otherProps } = this.props; return (
); } } QualityProfiles.propTypes = { isFetching: PropTypes.bool.isRequired, error: PropTypes.object, isDeleting: PropTypes.bool.isRequired, items: PropTypes.arrayOf(PropTypes.object).isRequired, onConfirmDeleteQualityProfile: PropTypes.func.isRequired, onCloneQualityProfilePress: PropTypes.func.isRequired }; export default QualityProfiles;