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 }) {
9898 <div className = " listItem nogap" >
9999 <label >
100100 <input type = " checkbox" name = " new" checked = { false } disabled />
101- <input type = " text " onKeyDown = { handleKeyDown } />
101+ <TextInput size = " small " onKeyDown = { handleKeyDown } />
102102 </label >
103103 <CancelButton />
104104 </div >
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export default function NewTodo({ userId }: { userId?: string }) {
122122
123123 return (
124124 <div >
125- <input type = " text " onKeyDown = { handlePress } />
125+ <TextInput size = " small " onKeyDown = { handlePress } />
126126 <label >
127127 <input
128128 type = " checkbox"
@@ -352,7 +352,7 @@ export default function PostListLayout({
352352 <input type = " radio" value = " clara" name = " author" />
353353 Clara
354354 </label >
355- <input type = " text " defaultValue = " New Post" name = " title" />
355+ <TextInput defaultValue = " New Post" name = " title" label = " Title " />
356356 <button type = " submit" >{ loading ? ' loading...' : ' Push' } </button >
357357 </form >
358358 </div >
Original file line number Diff line number Diff line change @@ -57,12 +57,7 @@ export default function NewPost({ author }: Props) {
5757 }
5858 });
5959
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" />;
6661}
6762interface Props {
6863 author: string ;
You can’t perform that action at this time.
0 commit comments