Keep cabinet data private per patient, email new accounts after a request, and store gallery photos as files.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -95,15 +95,20 @@ export function BookingActions({ booking }: { booking: Booking }) {
|
||||
<p className="mt-1 text-sm text-[var(--text-muted)]">{booking.doctorName}</p>
|
||||
<p className="text-sm text-[var(--text-muted)]">{booking.branchName}</p>
|
||||
<p className="mt-2 text-sm font-medium">{formatDate(booking.datetime, locale)}</p>
|
||||
{booking.source === "inquiry" ? (
|
||||
<p className="mt-2 text-sm text-[var(--text-muted)]">{t("requestPending")}</p>
|
||||
) : null}
|
||||
</div>
|
||||
<div className="text-right">
|
||||
<p className="text-sm font-semibold text-[var(--brand-700)]">{statusLabel}</p>
|
||||
<p className="mt-1 text-sm">{formatPrice(booking.price, locale)}</p>
|
||||
<p className="text-xs text-[var(--neutral-500)]">{paid ? t("paid") : t("unpaid")}</p>
|
||||
{booking.price ? <p className="mt-1 text-sm">{formatPrice(booking.price, locale)}</p> : null}
|
||||
{booking.source === "inquiry" ? null : (
|
||||
<p className="text-xs text-[var(--neutral-500)]">{paid ? t("paid") : t("unpaid")}</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{status === "upcoming" ? (
|
||||
{status === "upcoming" && booking.source !== "inquiry" ? (
|
||||
<div className="mt-4 flex flex-wrap gap-2">
|
||||
{!paid ? (
|
||||
<Button size="sm" onClick={pay} disabled={pending}>
|
||||
@@ -161,7 +166,7 @@ export function BookingActions({ booking }: { booking: Booking }) {
|
||||
|
||||
{reviewDone ? <p className="mt-3 text-sm text-[var(--success)]">{tr("thanks")}</p> : null}
|
||||
|
||||
{status === "upcoming" ? (
|
||||
{status === "upcoming" && booking.source !== "inquiry" ? (
|
||||
<p className="mt-3 text-xs text-[var(--neutral-500)]">
|
||||
<Link href="/booking" className="underline">
|
||||
{t("reschedule")}
|
||||
|
||||
Reference in New Issue
Block a user