File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
react-todos/src/components Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ import { FaTrash } from "react-icons/fa" ;
2+ import { IconContext } from "react-icons" ;
3+
14export default function TodoRowItem ( props ) {
25 return (
3- < tr onClick = { ( ) => props . deleteTodo ( props . rowNumber ) } >
6+ < tr >
47 < th scope = "row" > { props . rowNumber } </ th >
58 < td > { props . rowDescription } </ td >
69 < td > { props . rowAssigned } </ td >
10+ < td onClick = { ( ) => props . deleteTodo ( props . rowNumber ) } >
11+ < IconContext . Provider
12+ value = { {
13+ style : { cursor : "pointer" } ,
14+ color : "red" ,
15+ className : "global-class-name" ,
16+ } }
17+ >
18+ < FaTrash />
19+ </ IconContext . Provider >
20+ </ td >
721 </ tr >
822 ) ;
923}
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export default function TodoTable(props) {
88 < th scope = "col" > #</ th >
99 < th scope = "col" > Description</ th >
1010 < th scope = "col" > Assigned</ th >
11+ < th className = "bi-trash" > Delete</ th >
1112 </ tr >
1213 </ thead >
1314 < tbody >
You can’t perform that action at this time.
0 commit comments