Skip to content

Commit 71d8fb4

Browse files
committed
colocando opção de status na tarefa
1 parent 58b63d4 commit 71d8fb4

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ App estilo SPA para fins de aprendizado da tecnologia React.js
66

77
Um simples ToDo (lista de tarefas)
88

9+
![screen](https://github.com/alissonjr/todo-first-react-app/blob/master/model-screen.jpg)
10+
911
## About Me
1012

1113
Alisson Costa de Oliveira Júnior

model-screen.jpg

34.4 KB
Loading

src/components/task/index.jsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@ class Task extends Component {
77
render () {
88
return (
99
<tr>
10-
<td>
10+
<td class="text-left">
1111
{ this.props.task }
1212
</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>
1320
<td>
1421
<button onClick={() => {this.props.deleteTask(this.props.id)}} class="btn btn-sm btn-danger">Delete</button>
1522
</td>

src/components/taskBar/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ class TaskBar extends Component {
77
render () {
88
return (
99
<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)}>
1111
<div class="form-group mb-3">
1212
<label for="task" class="sr-only">New Task</label>
1313
<input type="text" name="task" ref="task" class="form-control" placeholder="add your tasks here" />
1414
</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>
1616
</form>
1717
</div>
1818
);

src/components/taskList/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class TaskList extends Component {
1111
<thead>
1212
<tr>
1313
<th>Task</th>
14+
<th style={{width: '200px'}}>Status</th>
1415
<th style={{width: '150px'}}>Actions</th>
1516
</tr>
1617
</thead>

0 commit comments

Comments
 (0)