(props)
| 3 | |
| 4 | import DeleteIcon from "@material-ui/icons/Delete"; |
| 5 | function Note(props) { |
| 6 | function handleClick() { |
| 7 | props.onDelete(props.id); |
| 8 | } |
| 9 | |
| 10 | return ( |
| 11 | <div className="note"> |
| 12 | <h1>{props.title}</h1> |
| 13 | <p>{props.content}</p> |
| 14 | <Fab onClick={handleClick}> |
| 15 | <DeleteIcon /> |
| 16 | </Fab> |
| 17 | </div> |
| 18 | ); |
| 19 | } |
| 20 | |
| 21 | export default Note; |
nothing calls this directly
no outgoing calls
no test coverage detected