@@ -424,7 +424,7 @@ const TaskAddModal = () => {
424424
425425 return (
426426 < Dialog open = { isModalOpen } onOpenChange = { handleClose } >
427- < DialogContent className = "phone:h-full phone:w-full tablet:h-full tablet:w-full laptop:h-[90vh] laptop:max-h-[800px] h-[95vh] max-h-[900px] w-[95vw] max-w-3xl overflow-y-auto bg-white p-4 dark:bg-gray-900" >
427+ < DialogContent className = "phone:h-full phone:w-full tablet:h-full tablet:w-full h-auto max-h-[900px] w-[95vw] max-w-3xl overflow-y-auto bg-white p-4 dark:bg-gray-900" >
428428 < form
429429 onSubmit = { ( e ) => {
430430 e . preventDefault ( ) ;
@@ -452,7 +452,7 @@ const TaskAddModal = () => {
452452 < div className = "grid grid-cols-1 gap-6 md:grid-cols-2" >
453453 < div className = "space-y-2" >
454454 < Label htmlFor = "title" className = "text-sm font-medium" >
455- Task Title
455+ Task Title < span className = "text-red-500" > * </ span >
456456 </ Label >
457457 < Input
458458 id = "title"
@@ -463,21 +463,6 @@ const TaskAddModal = () => {
463463 />
464464 </ div >
465465
466- { /* NEW: Deadline Input */ }
467- < div className = "space-y-2" >
468- < Label htmlFor = "deadline" className = "text-sm font-medium" >
469- Deadline
470- </ Label >
471- < Input
472- id = "deadline"
473- name = "deadline"
474- type = "date"
475- value = { deadline }
476- onChange = { ( e ) => setDeadline ( e . target . value ) }
477- className = "bg-light-900 dark:bg-dark-200 dark:text-light-900 focus:border-customBlue-500 border border-gray-300"
478- />
479- </ div >
480-
481466 < div className = "space-y-2" >
482467 < div className = "flex items-center gap-2" >
483468 < Label htmlFor = "points" className = "text-sm font-medium" >
@@ -498,7 +483,7 @@ const TaskAddModal = () => {
498483 </ div >
499484
500485 < div className = "space-y-2" >
501- < Label className = "text-sm font-medium" > Priority</ Label >
486+ < Label className = "text-sm font-medium" > Priority < span className = "text-red-500" > * </ span > </ Label >
502487 < Select name = "priority" >
503488 < SelectTrigger className = "bg-light-900 focus:border-customBlue-500 border border-gray-300 dark:border-gray-700" >
504489 < SelectValue placeholder = "Select priority" />
@@ -521,7 +506,7 @@ const TaskAddModal = () => {
521506
522507 < div className = "space-y-2" >
523508 < div className = "flex items-center gap-2" >
524- < Label className = "text-sm font-medium" > Difficulty</ Label >
509+ < Label className = "text-sm font-medium" > Difficulty < span className = "text-red-500" > * </ span > </ Label >
525510 < DifficultyPointsTooltip />
526511 </ div >
527512 < Select
@@ -555,7 +540,7 @@ const TaskAddModal = () => {
555540 </ div >
556541
557542 < div className = "space-y-2" >
558- < Label className = "text-sm font-medium" > Task Type</ Label >
543+ < Label className = "text-sm font-medium" > Task Type < span className = "text-red-500" > * </ span > </ Label >
559544 < Select name = "type" >
560545 < SelectTrigger className = "bg-light-900 focus:border-customBlue-500 border border-gray-300 dark:border-gray-700" >
561546 < SelectValue placeholder = "Select type" />
@@ -578,7 +563,7 @@ const TaskAddModal = () => {
578563 </ div >
579564
580565 < div className = "space-y-2" >
581- < Label className = "text-sm font-medium" > Skill Category</ Label >
566+ < Label className = "text-sm font-medium" > Skill Category < span className = "text-red-500" > * </ span > </ Label >
582567 < Select name = "skill_category_id" required >
583568 < SelectTrigger className = "bg-light-900 focus:border-customBlue-500 border border-gray-300 dark:border-gray-700" >
584569 < SelectValue placeholder = "Select skill category" />
@@ -594,6 +579,21 @@ const TaskAddModal = () => {
594579 </ SelectContent >
595580 </ Select >
596581 </ div >
582+
583+ { /* NEW: Deadline Input */ }
584+ < div className = "" >
585+ < Label htmlFor = "deadline" className = "text-sm font-medium" >
586+ Deadline
587+ </ Label >
588+ < Input
589+ id = "deadline"
590+ name = "deadline"
591+ type = "date"
592+ value = { deadline }
593+ onChange = { ( e ) => setDeadline ( e . target . value ) }
594+ className = "bg-light-900 dark:bg-dark-200 dark:text-light-900 focus:border-customBlue-500 border border-gray-300"
595+ />
596+ </ div >
597597 </ div >
598598
599599 < div className = "grid grid-cols-1 gap-6 md:grid-cols-2" >
@@ -686,4 +686,4 @@ const TaskAddModal = () => {
686686 ) ;
687687} ;
688688
689- export default TaskAddModal ;
689+ export default TaskAddModal ;
0 commit comments