File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed
Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -38,28 +38,26 @@ export default function WordForm({ onAddWordAction }: WordFormProps) {
3838 }
3939
4040 return (
41- < form className = "flex gap-2 max-w-screen-sm" action = { handleSubmit } >
42- < div className = "flex flex-col gap-1 " >
41+ < form className = "flex flex-col gap-1 max-w-screen-sm" action = { handleSubmit } >
42+ < div className = "flex gap-2 " >
4343 < Input
44- className = "px-4 w-[400px]"
4544 name = "word"
4645 placeholder = "Wort eingeben, z.B. Brief"
4746 required
4847 onChange = { handleChange }
4948 />
50-
51- < div
52- role = "alert"
53- aria-live = "assertive"
54- aria-atomic = "true"
55- className = "text-sm h-5"
56- >
57- { error ? `❌ ${ error } ` : '' }
58- </ div >
49+ < Button className = "px-4 py-2" type = "submit" >
50+ + Hinzufügen
51+ </ Button >
52+ </ div >
53+ < div
54+ role = "alert"
55+ aria-live = "assertive"
56+ aria-atomic = "true"
57+ className = "text-sm h-5"
58+ >
59+ { error && < span > ❌ { error } </ span > }
5960 </ div >
60- < Button className = "px-4 py-2" type = "submit" >
61- + Hinzufügen
62- </ Button >
6361 </ form >
6462 )
6563}
You can’t perform that action at this time.
0 commit comments