@@ -123,8 +123,8 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
123123 } ;
124124
125125 return (
126- < Card className = "py-4 " >
127- < CardContent >
126+ < Card className = "py-6 " >
127+ < CardContent className = "py-0" >
128128 < Form { ...form } >
129129 < form onSubmit = { form . handleSubmit ( handleSubmit ) } className = "space-y-6" >
130130 < div className = "grid grid-cols-1 gap-4 md:grid-cols-2" >
@@ -133,7 +133,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
133133 name = "title"
134134 render = { ( { field } ) => (
135135 < FormItem >
136- < FormLabel > Event Title * </ FormLabel >
136+ < FormLabel > Event Title</ FormLabel >
137137 < FormControl >
138138 < Input placeholder = "Enter event title" { ...field } />
139139 </ FormControl >
@@ -147,7 +147,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
147147 name = "slug"
148148 render = { ( { field } ) => (
149149 < FormItem >
150- < FormLabel > Slug * </ FormLabel >
150+ < FormLabel aria-required > Slug</ FormLabel >
151151 < FormControl >
152152 < Input
153153 placeholder = "Enter event slug"
@@ -169,7 +169,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
169169 name = "description"
170170 render = { ( { field } ) => (
171171 < FormItem >
172- < FormLabel > Description * </ FormLabel >
172+ < FormLabel aria-required > Description</ FormLabel >
173173 < FormControl >
174174 < TextEditor value = { field . value } onChange = { field . onChange } />
175175 </ FormControl >
@@ -184,7 +184,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
184184 name = "type"
185185 render = { ( { field } ) => (
186186 < FormItem >
187- < FormLabel > Event Type * </ FormLabel >
187+ < FormLabel aria-required > Event Type</ FormLabel >
188188 < Select onValueChange = { field . onChange } defaultValue = { field . value } >
189189 < FormControl >
190190 < SelectTrigger >
@@ -209,7 +209,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
209209 name = "status"
210210 render = { ( { field } ) => (
211211 < FormItem >
212- < FormLabel > Status * </ FormLabel >
212+ < FormLabel aria-required > Status</ FormLabel >
213213 < Select onValueChange = { field . onChange } defaultValue = { field . value } >
214214 < FormControl >
215215 < SelectTrigger >
@@ -234,7 +234,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
234234 name = "location"
235235 render = { ( { field } ) => (
236236 < FormItem >
237- < FormLabel > Location * </ FormLabel >
237+ < FormLabel aria-required > Location</ FormLabel >
238238 < FormControl >
239239 < Input placeholder = "Enter event location" { ...field } />
240240 </ FormControl >
@@ -248,7 +248,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
248248 name = "date"
249249 render = { ( { field } ) => (
250250 < FormItem className = "flex flex-col" >
251- < FormLabel > Event Date * </ FormLabel >
251+ < FormLabel aria-required > Event Date</ FormLabel >
252252 < Popover >
253253 < PopoverTrigger asChild >
254254 < FormControl >
@@ -281,7 +281,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
281281 name = "reservation_start_date"
282282 render = { ( { field } ) => (
283283 < FormItem className = "flex flex-col" >
284- < FormLabel > Reservation Start Date * </ FormLabel >
284+ < FormLabel aria-required > Reservation Start Date</ FormLabel >
285285 < Popover >
286286 < PopoverTrigger asChild >
287287 < FormControl >
@@ -313,7 +313,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
313313 name = "reservation_end_date"
314314 render = { ( { field } ) => (
315315 < FormItem className = "flex flex-col" >
316- < FormLabel > Reservation End Date * </ FormLabel >
316+ < FormLabel aria-required > Reservation End Date</ FormLabel >
317317 < Popover >
318318 < PopoverTrigger asChild >
319319 < FormControl >
@@ -347,7 +347,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
347347 name = "duration"
348348 render = { ( { field } ) => (
349349 < FormItem >
350- < FormLabel > Duration * </ FormLabel >
350+ < FormLabel aria-required > Duration</ FormLabel >
351351 < FormControl >
352352 < Input placeholder = "e.g. 2 hours" { ...field } />
353353 </ FormControl >
@@ -361,7 +361,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
361361 name = "capacity"
362362 render = { ( { field } ) => (
363363 < FormItem >
364- < FormLabel > Capacity * </ FormLabel >
364+ < FormLabel aria-required > Capacity</ FormLabel >
365365 < FormControl >
366366 < Input
367367 type = "number"
@@ -380,7 +380,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
380380 name = "price"
381381 render = { ( { field } ) => (
382382 < FormItem >
383- < FormLabel > Price * </ FormLabel >
383+ < FormLabel aria-required > Price</ FormLabel >
384384 < FormControl >
385385 < Input
386386 type = "number"
@@ -400,7 +400,7 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
400400 name = "registration_link"
401401 render = { ( { field } ) => (
402402 < FormItem >
403- < FormLabel > Registration Link * </ FormLabel >
403+ < FormLabel aria-required > Registration Link</ FormLabel >
404404 < FormControl >
405405 < Input placeholder = "https://example.com/register" { ...field } />
406406 </ FormControl >
0 commit comments