import React, { Fragment } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import classNames from 'classnames'; import CommentIcon from '@material-ui/icons/Comment'; import { List, ListItem, ListItemSecondaryAction, ListItemText, Checkbox, IconButton, } from '@material-ui/core'; import PapperBlock from '../PapperBlock/PapperBlock'; import styles from './widget-jss'; class TaskWidget extends React.Component { state = { checked: [0], }; handleToggle = value => () => { const { checked } = this.state; const currentIndex = checked.indexOf(value); const newChecked = [...checked]; if (currentIndex === -1) { newChecked.push(value); } else { newChecked.splice(currentIndex, 1); } this.setState({ checked: newChecked, }); }; render() { const { classes } = this.props; return ( {[0, 1, 2, 3, 4].map(value => ( ))} ); } } TaskWidget.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(TaskWidget);