diff --git a/eslint.config.mjs b/eslint.config.mjs index c85fb67..93b8977 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -6,11 +6,16 @@ const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const compat = new FlatCompat({ - baseDirectory: __dirname, + baseDirectory: __dirname, }); const eslintConfig = [ - ...compat.extends("next/core-web-vitals", "next/typescript"), + ...compat.extends("next/core-web-vitals", "next/typescript"), + { + rules: { + '@typescript-eslint/no-explicit-any': 'off', + }, + }, ]; export default eslintConfig; diff --git a/src/app/(panels)/suite/doctor/account/PatientForm.tsx b/src/app/(panels)/suite/doctor/account/PatientForm.tsx index 3cb246c..04b0a7f 100644 --- a/src/app/(panels)/suite/doctor/account/PatientForm.tsx +++ b/src/app/(panels)/suite/doctor/account/PatientForm.tsx @@ -9,15 +9,10 @@ import { Input } from "@/components/ui/input" import { Label } from "@/components/ui/label" -export function PersonForm({ person }: any) { +export function PersonForm({ person }: { person: { email: string, name: string, medications: any[], diagnoses: string[] } }) { const [medications, setMedications] = useState(person.medications || []) - async function onSubmit(event: React.FormEvent) { - event.preventDefault() - - } - const [diagnoses, setDiagnoses] = useState(person.diagnoses || []) const handleDiagnosesChange = (event: React.ChangeEvent) => { @@ -58,7 +53,7 @@ export function PersonForm({ person }: any) {

- {medications.map((medication: any, index: number) => ( + {medications.map((medication: { name: string, dosage: string, frequency:string }, index: number) => (