Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed May 7, 2024
1 parent c89c5c8 commit 2404fa5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
14 changes: 11 additions & 3 deletions app/(pages)/patient/components/Headbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { getPatientData, getUpcomingAppointments } from "@lib/patient";
import { Patient, bookedAppointments } from "@/types";
import Link from "next/link";
import getBaseUrl from "@utils/getBaseUrl";
import { CgMenuRightAlt } from "react-icons/cg";

export default async function Headbar() {
const patient: Patient = await getPatientData();
Expand Down Expand Up @@ -38,25 +39,29 @@ export default async function Headbar() {
radius="full"
variant="shadow"
size="sm"
className=" font-bold"
className="hidden md:flex"
href={`${serverUrl}/patient/appointments`}
>
<GoPlus size={20} />
</Button>

<Notifications upcomingAppointments={upcomingAppointments} />

<Divider orientation="vertical" className="h-8 bg-gray-500" />
<Divider
orientation="vertical"
className="hidden md:flex h-8 bg-gray-500"
/>

<User
name={patient.firstname}
avatarProps={{
src: patient.profile,
}}
className="hidden md:flex"
description={
<Link
href={`${serverUrl}/patient/settings`}
className="text-xs text-danger"
className="hidden md:flex text-xs text-danger"
>{`@${patient.username}`}</Link>
}
/>
Expand All @@ -66,6 +71,9 @@ export default async function Headbar() {
<CiLogin size={25} />
</Button>
</form>
<Button size="sm" type="submit" isIconOnly className="bg-transparent">
<CgMenuRightAlt size={23} className="flex md:hidden" />
</Button>
</div>
</div>
);
Expand Down
8 changes: 6 additions & 2 deletions app/(pages)/patient/components/Notifications/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ export default function Notifications({
offset={10}
>
<PopoverTrigger>
<Button isIconOnly size="sm" className="">
<CiBellOn size={25} />
<Button
isIconOnly
size="sm"
className="rounded-full bg-transparent md:bg-default"
>
<CiBellOn size={25} className="" />
</Button>
</PopoverTrigger>
<PopoverContent className="max-w-xs">
Expand Down
2 changes: 1 addition & 1 deletion app/(pages)/patient/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function PatientLayout({
children: React.ReactNode;
}>) {
return (
<main className="h-[100vh] flex">
<main className="h-screen flex">
<Sidebar />
<section className="flex flex-col w-full">
<Headbar />
Expand Down

0 comments on commit 2404fa5

Please sign in to comment.