diff --git a/src/app/(panels)/suite/patient/dashboard/MedicationTable.jsx b/src/app/(panels)/suite/patient/dashboard/MedicationTable.jsx index c790ab4..9a6f5ab 100644 --- a/src/app/(panels)/suite/patient/dashboard/MedicationTable.jsx +++ b/src/app/(panels)/suite/patient/dashboard/MedicationTable.jsx @@ -1,12 +1,5 @@ "use client" -import { - ColumnDef, - flexRender, - getCoreRowModel, - useReactTable, -} from "@tanstack/react-table" - import { Table, TableBody, @@ -16,13 +9,8 @@ import { TableRow, } from "@/components/ui/table" -export function MedicationTable(medications) { +export function MedicationTable({medications}) { - - if (!userData) return
Loading...
; - - console.log(userData); - return (
diff --git a/src/app/(panels)/suite/patient/dashboard/page.jsx b/src/app/(panels)/suite/patient/dashboard/page.jsx index ea173cc..5baf5a4 100644 --- a/src/app/(panels)/suite/patient/dashboard/page.jsx +++ b/src/app/(panels)/suite/patient/dashboard/page.jsx @@ -1,4 +1,5 @@ "use client" + import { useState, useEffect } from 'react'; import axios from 'axios'; import { useUser } from '@clerk/nextjs'; @@ -24,7 +25,7 @@ export default function Dashboard() {

Dashboard

- +
)