Guest User

Untitled

a guest
Jan 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. // Current Styling
  2. const styles = theme => ({
  3. nested: {
  4. paddingLeft: theme.spacing.unit * 4,
  5. },
  6. icon: {
  7. margin: theme.spacing.unit,
  8. fontSize: 25,
  9. },
  10. root: {
  11. color: cyan['A400'],
  12. '&$checked': {
  13. color: cyan['A400'],
  14. },
  15. },
  16. checked: {},
  17. });
  18.  
  19. // Actual checkbox code
  20. return (
  21. // Holds the individual step with edit icon and delete icon
  22. <>
  23. <ListItemIcon>
  24. {/* Checkbox */}
  25. <Checkbox
  26. type="checkbox"
  27. defaultChecked={step.completed}
  28. onChange={this.onChange}
  29. value="true"
  30. classes={{
  31. root: classes.root,
  32. checked: classes.checked,
  33. }}
  34. />
  35. </ListItemIcon>
Add Comment
Please, Sign In to add comment