File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export default function CreateTodo({ userId }: { userId: number }) {
98
98
<div className = " listItem nogap" >
99
99
<label >
100
100
<input type = " checkbox" name = " new" checked = { false } disabled />
101
- <input type = " text " onKeyDown = { handleKeyDown } />
101
+ <TextInput size = " small " onKeyDown = { handleKeyDown } />
102
102
</label >
103
103
<CancelButton />
104
104
</div >
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export default function NewTodo({ userId }: { userId?: string }) {
122
122
123
123
return (
124
124
<div >
125
- <input type = " text " onKeyDown = { handlePress } />
125
+ <TextInput size = " small " onKeyDown = { handlePress } />
126
126
<label >
127
127
<input
128
128
type = " checkbox"
@@ -352,7 +352,7 @@ export default function PostListLayout({
352
352
<input type = " radio" value = " clara" name = " author" />
353
353
Clara
354
354
</label >
355
- <input type = " text " defaultValue = " New Post" name = " title" />
355
+ <TextInput defaultValue = " New Post" name = " title" label = " Title " />
356
356
<button type = " submit" >{ loading ? ' loading...' : ' Push' } </button >
357
357
</form >
358
358
</div >
Original file line number Diff line number Diff line change @@ -57,12 +57,7 @@ export default function NewPost({ author }: Props) {
57
57
}
58
58
});
59
59
60
- return (
61
- <div >
62
- <input type = " text" onKeyDown = { handlePress } />
63
- { loading ? ' ...' : ' ' }
64
- </div >
65
- );
60
+ return <TextInput onKeyDown = { handlePress } loading = { loading } placeholder = " Post title" />;
66
61
}
67
62
interface Props {
68
63
author: string ;
You can’t perform that action at this time.
0 commit comments