style(registration): compact identifier display
This commit is contained in:
@@ -20,7 +20,7 @@ import {
|
||||
normalizeCouponAmounts,
|
||||
} from "@/lib/registration-hub-display";
|
||||
import type { RegistrationHubSchema, RegistrationHubState } from "@/lib/types";
|
||||
import { formatJalali, formatNumberPersian, formatToman, resolveErrorMessage } from "@/lib/utils";
|
||||
import { displayIdentifier, formatJalali, formatNumberPersian, formatToman, resolveErrorMessage } from "@/lib/utils";
|
||||
import { siteUrl } from "@/lib/site";
|
||||
|
||||
type Props = {
|
||||
@@ -443,9 +443,9 @@ export default function EventRegistrationHub({ slug, registrationId, paymentId }
|
||||
...(data.payment ? [
|
||||
{ label: "وضعیت پرداخت", value: data.payment.status === "paid" ? "پرداخت تأییدشده" : data.payment.status === "failed" ? "ناموفق" : data.payment.status === "canceled" ? "لغوشده" : "در انتظار تأیید" },
|
||||
{ label: "مبلغ پرداخت", value: money(data.payment.amount) },
|
||||
...(data.payment.ref_id ? [{ label: "کد پیگیری درگاه", value: data.payment.ref_id }] : []),
|
||||
...(data.payment.ref_id ? [{ label: "کد پیگیری درگاه", value: <code dir="ltr" className="font-mono">{data.payment.ref_id}</code> }] : []),
|
||||
] : []),
|
||||
...(data.registration ? [{ label: "کد ثبتنام", value: data.registration.ticket_id }] : []),
|
||||
...(data.registration ? [{ label: "کد ثبتنام", value: <code dir="ltr" className="font-mono">{displayIdentifier(data.registration.ticket_id)}</code> }] : []),
|
||||
...(data.registration?.registered_at ? [{ label: "تاریخ درخواست", value: formatJalali(data.registration.registered_at) }] : []),
|
||||
]
|
||||
: [];
|
||||
|
||||
Reference in New Issue
Block a user