Skip to content

Commit

Permalink
Add page for profile settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Jul 24, 2024
1 parent 3535281 commit c4d32aa
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions app/(pages)/admin/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,31 @@ import { getPatientData } from "@lib/patient";
import ProfileSettings from "@components/ProfileSettings";

export default async function Settings() {
const patient: Patient = await getPatientData();
// const patient: Patient = await getPatientData();
const admin = {
_id: "1",
firstname: "Admin",
lastname: "Kumar",
username: "admin",
email: "[email protected]",
dob: "1996-05-16",
gender: "Male",
contact: "7097654537",
profile:
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQVWLkd22f1fiO-xt_Jcu1I3Bq56Gu4mNdWPg&s",
address: {
address_line_1: "F 310 Wisteria Heights",
address_line_2: "Waghodia Daboi Ring Road",
city: "Vadodara",
state: "Gujarat",
country: "India",
zip_code: "390025",
},
};

return (
<section className="h-full w-full flex flex-col overflow-y-auto">
<ProfileSettings user={patient} />
<section className="h-screen w-full flex flex-col">
<ProfileSettings user={admin} />
</section>
);
}

0 comments on commit c4d32aa

Please sign in to comment.