Step numbers in todo app headers

This commit is contained in:
Elizabeth Craig
2019-03-05 02:58:04 -08:00
parent 46094abe9d
commit bdb17109a1
22 changed files with 40 additions and 16 deletions

View File

@@ -10,7 +10,7 @@ export class TodoHeader extends React.Component<any, any> {
const { filter } = this.props;
return (
<header>
<h1>todos - step1-06 demo</h1>
<h1>todos <small>(1.6 demo)</small></h1>
<div className="addTodo">
<input className="textfield" placeholder="add todo" />
<button className="submit">Add</button>

View File

@@ -12,7 +12,7 @@ export class TodoList extends React.Component<any, any> {
return (
<ul className="todos">
[01, 02, 03, 04].map((id)=> <TodoListItem />)
{['01', '02', '03', '04'].map((id) => <TodoListItem />)}
</ul>
);
}

View File

@@ -8,6 +8,10 @@ h1 {
text-align: center;
}
small {
font-size: 0.5em;
}
.addTodo {
display: flex;
}