@@ -430,12 +430,12 @@ const RequestRideDialog: React.FC<RequestRideDialogProps> = ({
430430
431431 const handleDateChange =
432432 ( field : keyof Pick < FormData , 'date' | 'time' | 'repeatEndDate' > ) =>
433- ( newDate : Date | null ) => {
434- setFormData ( {
435- ...formData ,
436- [ field ] : newDate ,
437- } ) ;
438- } ;
433+ ( newDate : Date | null ) => {
434+ setFormData ( {
435+ ...formData ,
436+ [ field ] : newDate ,
437+ } ) ;
438+ } ;
439439
440440 const handleRepeatTypeChange = (
441441 event : React . ChangeEvent < HTMLInputElement >
@@ -493,7 +493,7 @@ const RequestRideDialog: React.FC<RequestRideDialogProps> = ({
493493 finalDropoff !== null &&
494494 finalPickup !== null &&
495495 normalizeAddress ( finalDropoff ?. address ) ===
496- normalizeAddress ( finalPickup . address )
496+ normalizeAddress ( finalPickup . address )
497497 ) {
498498 setInputPickUpError ( true ) ;
499499 setInputDropOffError ( true ) ;
@@ -588,8 +588,8 @@ const RequestRideDialog: React.FC<RequestRideDialogProps> = ({
588588 backgroundColor : formData . pickupLocation
589589 ? '#4caf50'
590590 : selectionState === 'pickup'
591- ? '#2196f3'
592- : '#e0e0e0' ,
591+ ? '#2196f3'
592+ : '#e0e0e0' ,
593593 color : 'white' ,
594594 fontSize : '12px' ,
595595 } }
@@ -603,8 +603,8 @@ const RequestRideDialog: React.FC<RequestRideDialogProps> = ({
603603 backgroundColor : formData . dropoffLocation
604604 ? '#4caf50'
605605 : selectionState === 'dropoff'
606- ? '#2196f3'
607- : '#e0e0e0' ,
606+ ? '#2196f3'
607+ : '#e0e0e0' ,
608608 color : 'white' ,
609609 fontSize : '12px' ,
610610 } }
@@ -691,8 +691,8 @@ const RequestRideDialog: React.FC<RequestRideDialogProps> = ({
691691 Or select from dropdown:
692692 </ h4 >
693693
694- < FormControl fullWidth style = { { marginBottom : '16px' } } >
695- < InputLabel > Pickup Location</ InputLabel >
694+ < FormControl fullWidth required style = { { marginBottom : '16px' } } >
695+ < InputLabel required > Pickup Location</ InputLabel >
696696 < Select < string >
697697 value = { formData . pickupLocation ?. id || '' }
698698 onChange = { ( event ) => {
@@ -744,8 +744,8 @@ const RequestRideDialog: React.FC<RequestRideDialogProps> = ({
744744 </ div >
745745 ) }
746746
747- < FormControl fullWidth >
748- < InputLabel > Drop-off Location</ InputLabel >
747+ < FormControl fullWidth required >
748+ < InputLabel required > Drop-off Location</ InputLabel >
749749 < Select < string >
750750 value = { formData . dropoffLocation ?. id || '' }
751751 disabled = { ! formData . pickupLocation } //makes ensuring start and end locations are different simpler
@@ -808,7 +808,7 @@ const RequestRideDialog: React.FC<RequestRideDialogProps> = ({
808808 < LocalizationProvider dateAdapter = { AdapterDateFns } >
809809 < Stack direction = "row" spacing = { 2 } >
810810 < DatePicker
811- label = "Date"
811+ label = "Date * "
812812 value = { formData . date }
813813 onChange = { handleDateChange ( 'date' ) }
814814 slotProps = { {
@@ -818,7 +818,7 @@ const RequestRideDialog: React.FC<RequestRideDialogProps> = ({
818818 } }
819819 />
820820 < TimePicker
821- label = "Time"
821+ label = "Time * "
822822 value = { formData . time }
823823 onChange = { handleDateChange ( 'time' ) }
824824 slotProps = { {
@@ -850,7 +850,7 @@ const RequestRideDialog: React.FC<RequestRideDialogProps> = ({
850850 { formData . repeatType !== 'none' && (
851851 < LocalizationProvider dateAdapter = { AdapterDateFns } >
852852 < DatePicker
853- label = "Repeat End Date"
853+ label = "Repeat End Date * "
854854 value = { formData . repeatEndDate }
855855 onChange = { handleDateChange ( 'repeatEndDate' ) }
856856 slotProps = { {
0 commit comments