diff --git a/pages/availability/troubleshoot.tsx b/pages/availability/troubleshoot.tsx index 47f8141f..64c6173d 100644 --- a/pages/availability/troubleshoot.tsx +++ b/pages/availability/troubleshoot.tsx @@ -15,7 +15,7 @@ dayjs.extend(utc); export default function Troubleshoot({ user }: inferSSRProps) { const [loading, setLoading] = useState(true); const [availability, setAvailability] = useState([]); - const [selectedDate] = useState(dayjs()); + const [selectedDate, setSelectedDate] = useState(dayjs()); function convertMinsToHrsMins(mins: number) { let h = Math.floor(mins / 60); @@ -55,9 +55,17 @@ export default function Troubleshoot({ user }: inferSSRProps -
+
- Here is an overview of your day on {selectedDate.format("D MMMM YYYY")}: + Here is an overview of your day on{" "} + { + setSelectedDate(dayjs(e.target.value)); + }} + /> Tip: Hover over the bold times for a full timestamp