From 5e6014dd526985fb112abf2e48bd0295852e4d9f Mon Sep 17 00:00:00 2001 From: Sir Blob <76974209+GamerBoss101@users.noreply.github.com> Date: Sat, 25 Jan 2025 16:26:41 -0500 Subject: [PATCH] patient update 4 --- .../(panels)/suite/patient/account/page.jsx | 72 +------------------ tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 72 deletions(-) diff --git a/src/app/(panels)/suite/patient/account/page.jsx b/src/app/(panels)/suite/patient/account/page.jsx index 7817b9a..691a806 100644 --- a/src/app/(panels)/suite/patient/account/page.jsx +++ b/src/app/(panels)/suite/patient/account/page.jsx @@ -3,7 +3,6 @@ import { useState, useEffect } from 'react'; import axios from 'axios'; import { useUser } from '@clerk/nextjs'; -import { Button } from '@/components/ui/button'; import { Label } from '@/components/ui/label'; import { Card, CardHeader, CardContent } from '@/components/ui/card'; @@ -21,21 +20,7 @@ const AccountPage = () => { if (!userData) return
Loading...
; - const [medications, setMedications] = useState([]); - const handleMedicationsChange = (index, field, value) => { - const newMedications = [...medications]; - newMedications[index][field] = value; - setMedications(newMedications); - } - - const handleAddMedication = () => { - setMedications([...medications, { name: '', dosage: '', frequency: '' }]); - } - - const [diagnoses, setDiagnoses] = useState([]); - const handleDiagnosesChange = (e) => { - setDiagnoses(e.target.value.split(',')); - } + console.log(userData); return (
@@ -56,61 +41,6 @@ const AccountPage = () => {

{userData.role}

-
- -
- {medications.map((medication, index) => ( -
- handleMedicationsChange(index, 'name', e.target.value)} - className="mb-2" - /> - handleMedicationsChange(index, 'dosage', e.target.value)} - className="mb-2" - /> - handleMedicationsChange(index, 'frequency', e.target.value)} - className="mb-2" - /> -
- ))} -
- - - - -
-
-
- - -
diff --git a/tsconfig.json b/tsconfig.json index b7a29c2..f444d82 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,6 +22,6 @@ "@/*": ["./src/*"] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "src/app/api/connectDB.js", "src/lib/utils.js", "src/app/(web)/account/page.jsx"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "src/app/api/connectDB.js", "src/lib/utils.js", "src/app/(web)/account/page.jsx", "src/app/(panels)/suite/patient/account/page.jsx"], "exclude": ["node_modules"] }