@@ -237,7 +237,9 @@ export default function ComboboxForm() {
237237 render = { ( { field } ) => (
238238 < FormItem className = "flex flex-col" >
239239 < FormLabel > Name</ FormLabel >
240- < Input placeholder = "Name" { ...field } />
240+ < FormControl >
241+ < Input placeholder = "Name" { ...field } />
242+ </ FormControl >
241243 < FormDescription >
242244 How would you like to name this membership?
243245 </ FormDescription >
@@ -252,7 +254,9 @@ export default function ComboboxForm() {
252254 render = { ( { field } ) => (
253255 < FormItem className = "flex flex-col" >
254256 < FormLabel > Duration</ FormLabel >
255- < Input placeholder = "Days" type = "number" { ...field } />
257+ < FormControl >
258+ < Input placeholder = "Days" type = "number" { ...field } />
259+ </ FormControl >
256260 < FormDescription > How long is the membership?</ FormDescription >
257261 < FormMessage />
258262 </ FormItem >
@@ -265,12 +269,14 @@ export default function ComboboxForm() {
265269 render = { ( { field } ) => (
266270 < FormItem className = "flex flex-col" >
267271 < FormLabel > Borrow Period</ FormLabel >
268- < Input
269- placeholder = "Days"
270- type = "number"
271- { ...field }
272- onChange = { field . onChange }
273- />
272+ < FormControl >
273+ < Input
274+ placeholder = "Days"
275+ type = "number"
276+ { ...field }
277+ onChange = { field . onChange }
278+ />
279+ </ FormControl >
274280 < FormDescription >
275281 How many days can a book be borrowed?
276282 </ FormDescription >
@@ -285,12 +291,14 @@ export default function ComboboxForm() {
285291 render = { ( { field } ) => (
286292 < FormItem className = "flex flex-col" >
287293 < FormLabel > Active Limit</ FormLabel >
288- < Input
289- placeholder = "Days"
290- type = "number"
291- { ...field }
292- onChange = { field . onChange }
293- />
294+ < FormControl >
295+ < Input
296+ placeholder = "Days"
297+ type = "number"
298+ { ...field }
299+ onChange = { field . onChange }
300+ />
301+ </ FormControl >
294302 < FormDescription >
295303 How many books can be borrowed at a time?
296304 </ FormDescription >
@@ -305,12 +313,14 @@ export default function ComboboxForm() {
305313 render = { ( { field } ) => (
306314 < FormItem className = "flex flex-col" >
307315 < FormLabel > Fine per Day</ FormLabel >
308- < Input
309- placeholder = "Pts"
310- type = "number"
311- { ...field }
312- onChange = { field . onChange }
313- />
316+ < FormControl >
317+ < Input
318+ placeholder = "Pts"
319+ type = "number"
320+ { ...field }
321+ onChange = { field . onChange }
322+ />
323+ </ FormControl >
314324 < FormDescription >
315325 How much is the fine per day?
316326 </ FormDescription >
@@ -325,12 +335,14 @@ export default function ComboboxForm() {
325335 render = { ( { field } ) => (
326336 < FormItem className = "flex flex-col" >
327337 < FormLabel > Usage Limit</ FormLabel >
328- < Input
329- placeholder = "Times"
330- type = "number"
331- { ...field }
332- onChange = { field . onChange }
333- />
338+ < FormControl >
339+ < Input
340+ placeholder = "Times"
341+ type = "number"
342+ { ...field }
343+ onChange = { field . onChange }
344+ />
345+ </ FormControl >
334346 < FormDescription >
335347 How many times can a membership be used?
336348 </ FormDescription >
@@ -345,12 +357,14 @@ export default function ComboboxForm() {
345357 render = { ( { field } ) => (
346358 < FormItem className = "flex flex-col" >
347359 < FormLabel > Price</ FormLabel >
348- < Input
349- placeholder = "Pts"
350- type = "number"
351- { ...field }
352- onChange = { field . onChange }
353- />
360+ < FormControl >
361+ < Input
362+ placeholder = "Pts"
363+ type = "number"
364+ { ...field }
365+ onChange = { field . onChange }
366+ />
367+ </ FormControl >
354368 < FormDescription >
355369 How much does the membership cost?
356370 </ FormDescription >
0 commit comments