Update calendar to display the current month by default

Correctly initialize the calendar component's date state to use the current date rather than a hardcoded future date.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a8a78c07-e900-425c-a577-5b4c5894379d
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/a8a78c07-e900-425c-a577-5b4c5894379d/bWyNcZX
This commit is contained in:
michaelschal committed 2025-08-11 20:16:46 +00:00
1 parent 6a2e5aad05
commit 0e2f017305
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ export default function Calendar() {
const { user } = useAuthUnified();
const { selectedStoreId } = useStore();
const queryClient = useQueryClient();
const [currentDate, setCurrentDate] = useState(new Date(2025, 6, 1)); // July 2025
const [currentDate, setCurrentDate] = useState(new Date()); // Current date
const [selectedDate, setSelectedDate] = useState<Date | null>(null);
const [showQuickCreate, setShowQuickCreate] = useState(false);
const [showOrderDetail, setShowOrderDetail] = useState(false);