Make sure the currently selected date is active
This commit is contained in:
		
							parent
							
								
									f7f5e2cc17
								
							
						
					
					
						commit
						9fe11ea10d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -92,7 +92,7 @@ const DatePicker = ({ weekStart, onDatePicked, workingHours, organizerTimeZone,
 | 
				
			||||||
        </button>
 | 
					        </button>
 | 
				
			||||||
      )),
 | 
					      )),
 | 
				
			||||||
    ]);
 | 
					    ]);
 | 
				
			||||||
  }, [selectedMonth, inviteeTimeZone]);
 | 
					  }, [selectedMonth, inviteeTimeZone, selectedDate]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return selectedMonth ? (
 | 
					  return selectedMonth ? (
 | 
				
			||||||
    <div className={"mt-8 sm:mt-0 " + (selectedDate ? "sm:w-1/3 border-r sm:px-4" : "sm:w-1/2 sm:pl-4")}>
 | 
					    <div className={"mt-8 sm:mt-0 " + (selectedDate ? "sm:w-1/3 border-r sm:px-4" : "sm:w-1/2 sm:pl-4")}>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue