File tree 5 files changed +13
-3
lines changed 5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ App estilo SPA para fins de aprendizado da tecnologia React.js
6
6
7
7
Um simples ToDo (lista de tarefas)
8
8
9
+ ![ screen] ( https://github.com/alissonjr/todo-first-react-app/blob/master/model-screen.jpg )
10
+
9
11
## About Me
10
12
11
13
Alisson Costa de Oliveira Júnior
Original file line number Diff line number Diff line change @@ -7,9 +7,16 @@ class Task extends Component {
7
7
render ( ) {
8
8
return (
9
9
< tr >
10
- < td >
10
+ < td class = "text-left" >
11
11
{ this . props . task }
12
12
</ td >
13
+ < td >
14
+ < select class = "custom-select" >
15
+ < option value = "" selected > To Do</ option >
16
+ < option value = "" > Doing</ option >
17
+ < option value = "" > Done</ option >
18
+ </ select >
19
+ </ td >
13
20
< td >
14
21
< button onClick = { ( ) => { this . props . deleteTask ( this . props . id ) } } class = "btn btn-sm btn-danger" > Delete</ button >
15
22
</ td >
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ class TaskBar extends Component {
7
7
render ( ) {
8
8
return (
9
9
< div class = "container" >
10
- < form class = "form-inline" >
10
+ < form class = "form-inline" action = "javascript:return void;" onSubmit = { ( ) => this . props . addTask ( this . refs . task . value ) } >
11
11
< div class = "form-group mb-3" >
12
12
< label for = "task" class = "sr-only" > New Task</ label >
13
13
< input type = "text" name = "task" ref = "task" class = "form-control" placeholder = "add your tasks here" />
14
14
</ div >
15
- < button type = "button" onClick = { ( ) => this . props . addTask ( this . refs . task . value ) } class = "btn btn-primary mb-3 ml-2" > Add Task</ button >
15
+ < button type = "button" class = "btn btn-primary mb-3 ml-2" > Add Task</ button >
16
16
</ form >
17
17
</ div >
18
18
) ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ class TaskList extends Component {
11
11
< thead >
12
12
< tr >
13
13
< th > Task</ th >
14
+ < th style = { { width : '200px' } } > Status</ th >
14
15
< th style = { { width : '150px' } } > Actions</ th >
15
16
</ tr >
16
17
</ thead >
You can’t perform that action at this time.
0 commit comments