import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withTranslation } from '../../contextProviders'; import { Icon } from './../../elements/Icon'; import { OverlayTrigger } from './../overlayTrigger'; import { Tooltip } from './../tooltip'; import { TableListItem } from './../tableList/TableListItem.js'; import './MeasurementTableItem.styl'; const ColoredCircle = ({ color }) => { return
; }; ColoredCircle.propTypes = { color: PropTypes.string.isRequired, }; class MeasurementTableItem extends Component { static propTypes = { measurementData: PropTypes.object.isRequired, onItemClick: PropTypes.func.isRequired, onRelabel: PropTypes.func, onDelete: PropTypes.func, onEditDescription: PropTypes.func, itemClass: PropTypes.string, itemIndex: PropTypes.number, t: PropTypes.func, }; constructor(props) { super(props); this.state = { collapsed: true, visible: true, }; } render() { const { warningTitle = '', hasWarnings, isReadOnly, } = this.props.measurementData; return (