-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b961205
commit 67ee90d
Showing
17 changed files
with
108 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
const nextConfig = { | ||
images: { | ||
remotePatterns: [ | ||
{ | ||
protocol: 'https', | ||
hostname: 'res.cloudinary.com' | ||
}, | ||
] | ||
}, | ||
}; | ||
|
||
export default nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,48 @@ | ||
import { DoctorDetails } from '@/ui/doctors/Details' | ||
import { getDoctorById } from '@/actions/doctors/doctorActions' | ||
import { CalendarDemo } from '@/components/CalendarDemo' | ||
import Image from 'next/image' | ||
import { redirect } from 'next/navigation' | ||
|
||
export default async function AppointmentById({ params }: { params: { id: string } }) { | ||
const id = Number(params.id) | ||
|
||
const doctor = await getDoctorById(id) | ||
|
||
|
||
if (!doctor) { | ||
redirect("/dashboard") | ||
} | ||
|
||
return ( | ||
<div className="flex flex-col p-4 gap-4"> | ||
<h3>Agenda del doctor </h3> | ||
<DoctorDetails doctor={doctor} /> | ||
<div className=" max-w-[1400px] mx-auto px-6 py-10"> | ||
<div className="flex justify-between"> | ||
<div> | ||
<h2 className="mb-6 text-2xl">Selecciona un turno</h2> | ||
<div className="flex gap-8"> | ||
|
||
<figure className='relative size-20 rounded-full overflow-hidden'> | ||
<Image src={doctor.img} fill sizes='(max-width: 728px) 100px' alt='' /> | ||
</figure> | ||
<div> | ||
<h3>{doctor.name}</h3> | ||
<span>{doctor.specialization}</span> | ||
|
||
<p className="mt-2">Clínica colón - jujuy 2176</p> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<div> | ||
<div className="bg-zinc-200 p-6 rounded-lg"> | ||
<h2 className="font-bold">Primer turno disponible</h2> | ||
<p>Martes 22 de Octubre <span className="font-bold">14:00hs</span></p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<CalendarDemo /> | ||
|
||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export interface Doctors { | ||
id: number; | ||
name: string; | ||
password: string; | ||
email: string; | ||
phone: string; | ||
img: string; | ||
active: boolean; | ||
specialization: string; | ||
licenseNumber: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters