diff --git a/client/src/pages/BreedingCalendar.jsx b/client/src/pages/BreedingCalendar.jsx index ccd33c0..e413033 100644 --- a/client/src/pages/BreedingCalendar.jsx +++ b/client/src/pages/BreedingCalendar.jsx @@ -1,15 +1,17 @@ import { useEffect, useState, useCallback } from 'react' import { Heart, ChevronLeft, ChevronRight, Plus, X, - CalendarDays, FlaskConical, Baby, AlertCircle, CheckCircle2 + CalendarDays, FlaskConical, Baby, AlertCircle, CheckCircle2, Activity } from 'lucide-react' +import { useNavigate } from 'react-router-dom' +import axios from 'axios' // ─── Date helpers ──────────────────────────────────────────────────────────── const toISO = d => d.toISOString().split('T')[0] const addDays = (dateStr, n) => { const d = new Date(dateStr); d.setDate(d.getDate() + n); return toISO(d) } -const fmt = str => str ? new Date(str + 'T00:00:00').toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' }) : '—' +const fmt = str => str ? new Date(str + 'T00:00:00').toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' }) : '–' const today = toISO(new Date()) // ─── Cycle window classifier ───────────────────────────────────────────────── @@ -74,7 +76,7 @@ function StartCycleModal({ females, onClose, onSaved }) {