Skip to content

Commit

Permalink
Accessing patient data in server component
Browse files Browse the repository at this point in the history
and passing to its child
  • Loading branch information
ad956 committed Jun 8, 2024
1 parent 82beb9a commit b626bd9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/(pages)/patient/settings/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { Patient } from "@/types";
import { getPatientData } from "@lib/patient";
import { ProfileSettings } from "../components";

export default function Settings() {
export default async function Settings() {
const patient: Patient = await getPatientData();

return (
<section className="h-full w-full flex flex-col">
<ProfileSettings />
<ProfileSettings patient={patient} />
</section>
);
}

0 comments on commit b626bd9

Please sign in to comment.