File tree Expand file tree Collapse file tree 3 files changed +24
-12
lines changed
web-app-redux/src/home/todoResults Expand file tree Collapse file tree 3 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
+ import TodoResultsRow from './todoResultsRow/todoResultsRow'
2
3
import './todoResults.scss'
3
- import MaterialIcon from 'material-icons-react' ;
4
+
4
5
5
6
export default class TodoResults extends React . Component {
6
7
render ( ) {
@@ -11,17 +12,8 @@ export default class TodoResults extends React.Component {
11
12
< th > List</ th >
12
13
</ tr >
13
14
< tbody >
14
- < tr >
15
- < td >
16
- < span class = "todoText" >
17
- hi
18
- </ span >
19
- < button class = "iconContainer" >
20
- < MaterialIcon icon = "delete" />
21
- </ button >
22
- </ td >
23
- </ tr >
24
-
15
+ < TodoResultsRow todoItem = "test" />
16
+ < TodoResultsRow todoItem = "test" />
25
17
</ tbody >
26
18
</ table >
27
19
</ section >
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import MaterialIcon from 'material-icons-react' ;
3
+
4
+ export default class TodoResultsRow extends React . Component {
5
+
6
+ render ( ) {
7
+ return (
8
+ < tr >
9
+ < td >
10
+ < span class = "todoText" >
11
+ { this . props . todoItem }
12
+ </ span >
13
+ < button class = "iconContainer" >
14
+ < MaterialIcon icon = "delete" />
15
+ </ button >
16
+ </ td >
17
+ </ tr >
18
+ )
19
+ }
20
+ }
You can’t perform that action at this time.
0 commit comments