setNewVisitDoctor(e.target.value)}
placeholder="Doctor name"
- className="w-full p-2 border rounded-lg"
+ className="w-full p-2 border dark:border-gray-600 rounded-lg dark:bg-gray-700 dark:text-white dark:placeholder-gray-400"
/>
setNewVisitReason(e.target.value)}
placeholder="Reason (e.g., Checkup, Fever)"
- className="w-full p-2 border rounded-lg"
+ className="w-full p-2 border dark:border-gray-600 rounded-lg dark:bg-gray-700 dark:text-white dark:placeholder-gray-400"
/>
setNewVisitDate(e.target.value)}
- className="w-full p-2 border rounded-lg"
+ className="w-full p-2 border dark:border-gray-600 rounded-lg dark:bg-gray-700 dark:text-white"
/>
setNewVisitNotes(e.target.value)}
placeholder="Notes"
- className="w-full p-2 border rounded-lg"
+ className="w-full p-2 border dark:border-gray-600 rounded-lg dark:bg-gray-700 dark:text-white dark:placeholder-gray-400"
/>
-
@@ -756,16 +756,16 @@ const SUPPLEMENTS = [
)}
{visits.length === 0 && !showAddVisit ? (
-
-
No visits recorded
+
) : (
visits.map((visit) => (
-
+
{visit.doctorName}
-
+
{new Date(visit.date).toLocaleDateString()}
{visit.reason && ` · ${visit.reason}`}
{visit.notes && ` · ${visit.notes}`}
@@ -781,7 +781,7 @@ const SUPPLEMENTS = [
)}
{!showAddVisit && (
-
setShowAddVisit(true)} className="w-full p-4 border-2 border-dashed border-gray-300 rounded-xl text-gray-500">
+ setShowAddVisit(true)} className="w-full p-4 border-2 border-dashed border-gray-300 dark:border-gray-600 rounded-xl text-gray-500 dark:text-gray-400">
+ Add Visit
)}
@@ -793,13 +793,13 @@ const SUPPLEMENTS = [
Illness Log
{showAddIllness && (
-
+
setNewIllnessName(e.target.value)}
placeholder="Illness (e.g., Cold, Fever, Flu)"
- className="w-full p-2 border rounded-lg"
+ className="w-full p-2 border dark:border-gray-600 rounded-lg dark:bg-gray-700 dark:text-white dark:placeholder-gray-400"
/>
setNewIllnessStart(e.target.value)}
placeholder="Start date"
- className="w-full p-2 border rounded-lg"
+ className="w-full p-2 border dark:border-gray-600 rounded-lg dark:bg-gray-700 dark:text-white"
/>
setNewIllnessEnd(e.target.value)}
placeholder="End date"
- className="w-full p-2 border rounded-lg"
+ className="w-full p-2 border dark:border-gray-600 rounded-lg dark:bg-gray-700 dark:text-white"
/>
setNewIllnessNotes(e.target.value)}
placeholder="Notes"
- className="w-full p-2 border rounded-lg"
+ className="w-full p-2 border dark:border-gray-600 rounded-lg dark:bg-gray-700 dark:text-white dark:placeholder-gray-400"
/>
{editingIllness ? "Update" : "Add"}
-
+
Cancel
@@ -836,16 +836,16 @@ const SUPPLEMENTS = [
)}
{illnesses.length === 0 && !showAddIllness ? (
-
-
No illnesses recorded
+
) : (
illnesses.map((illness) => (
-
+
{illness.name}
-
+
{new Date(illness.startDate).toLocaleDateString()}
{illness.endDate && ` - ${new Date(illness.endDate).toLocaleDateString()}`}
{illness.notes && ` · ${illness.notes}`}
@@ -861,7 +861,7 @@ const SUPPLEMENTS = [
)}
{!showAddIllness && (
- setShowAddIllness(true)} className="w-full p-4 border-2 border-dashed border-gray-300 rounded-xl text-gray-500">
+ setShowAddIllness(true)} className="w-full p-4 border-2 border-dashed border-gray-300 dark:border-gray-600 rounded-xl text-gray-500 dark:text-gray-400">
+ Log Illness
)}