added some url path in view pages
This commit is contained in:
1 parent
2ba061b76c
commit
ef9d6201eb
8 files changed
+757
-854
No files matched your search
@@ -1,6 +1,6 @@
|
||||
// pages/OnlinePaymentDetailPage.tsx
|
||||
|
||||
import { useParams } from "react-router-dom";
|
||||
import { useParams } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Section, InfoRow } from "@/components/viewPageComponents";
|
||||
import { useGetOnlinePaymentById } from "@/features/onlinePaymentHistory/hooks/useOnlinePaymentsHistory";
|
||||
@@ -30,9 +30,7 @@ export default function OnlinePaymentDetailPage() {
|
||||
if (!payment) {
|
||||
return (
|
||||
<div className="p-6">
|
||||
<p className="text-muted-foreground">
|
||||
{t("onlinePayments.notFound", "Töleg tapylmady")}
|
||||
</p>
|
||||
<p className="text-muted-foreground">{t("onlinePayments.notFound", "Töleg tapylmady")}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -43,76 +41,35 @@ export default function OnlinePaymentDetailPage() {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<h1 className="text-xl font-semibold text-foreground mb-6 break-all">
|
||||
{title}
|
||||
</h1>
|
||||
<h1 className="text-xl font-semibold text-foreground mb-6 break-all">{title}</h1>
|
||||
|
||||
{/* Detail Card */}
|
||||
<Section>
|
||||
<InfoRow label={t("common.id", "ID")} value={payment.id} />
|
||||
<InfoRow
|
||||
label={t("onlinePayments.fields.amount", "amount")}
|
||||
value={payment.amount}
|
||||
/>
|
||||
<InfoRow
|
||||
label={t("onlinePayments.fields.orderNumber", "orderNumber")}
|
||||
value={payment.orderNumber}
|
||||
/>
|
||||
<InfoRow
|
||||
label={t("onlinePayments.fields.apiClient", "Api Client")}
|
||||
value={payment.apiClient}
|
||||
/>
|
||||
<InfoRow
|
||||
label={t("onlinePayments.fields.description", "description")}
|
||||
value={payment.description}
|
||||
/>
|
||||
<InfoRow
|
||||
label={t("onlinePayments.fields.orderId", "orderId")}
|
||||
value={payment.orderId}
|
||||
/>
|
||||
<InfoRow
|
||||
label={t("onlinePayments.fields.formUrl", "formUrl")}
|
||||
isLink
|
||||
value={payment.formUrl}
|
||||
/>
|
||||
<InfoRow label={t("onlinePayments.fields.amount", "amount")} value={payment.amount} />
|
||||
<InfoRow label={t("onlinePayments.fields.orderNumber", "orderNumber")} value={payment.orderNumber} />
|
||||
<InfoRow label={t("onlinePayments.fields.apiClient", "Api Client")} value={payment.apiClient} />
|
||||
<InfoRow label={t("onlinePayments.fields.description", "description")} value={payment.description} />
|
||||
<InfoRow label={t("onlinePayments.fields.orderId", "orderId")} value={payment.orderId} />
|
||||
<InfoRow label={t("onlinePayments.fields.formUrl", "formUrl")} isLink href={payment.formUrl ?? undefined} value={payment.formUrl} />
|
||||
<InfoRow
|
||||
label={t("onlinePayments.fields.successUrl", "successUrl")}
|
||||
isLink
|
||||
href={payment.successUrl ?? undefined}
|
||||
value={payment.successUrl}
|
||||
/>
|
||||
<InfoRow label={t("onlinePayments.fields.status", "Status")}>
|
||||
<PaymentStatusBadge status={payment.status} />
|
||||
</InfoRow>
|
||||
<InfoRow label={t("onlinePayments.fields.callbackStatus", "callbackStatus")} value={payment.callbackStatus ?? "—"} />
|
||||
<InfoRow label={t("onlinePayments.fields.username", "username")} value={payment.username} />
|
||||
<InfoRow label={t("onlinePayments.fields.onlinePaymantableId", "online_paymantable_id")} value={payment.onlinePaymantableId} />
|
||||
<InfoRow
|
||||
label={t("onlinePayments.fields.callbackStatus", "callbackStatus")}
|
||||
value={payment.callbackStatus ?? "—"}
|
||||
/>
|
||||
<InfoRow
|
||||
label={t("onlinePayments.fields.username", "username")}
|
||||
value={payment.username}
|
||||
/>
|
||||
<InfoRow
|
||||
label={t(
|
||||
"onlinePayments.fields.onlinePaymantableId",
|
||||
"online_paymantable_id",
|
||||
)}
|
||||
value={payment.onlinePaymantableId}
|
||||
/>
|
||||
<InfoRow
|
||||
label={t(
|
||||
"onlinePayments.fields.onlinePaymantableType",
|
||||
"online_paymantable_type",
|
||||
)}
|
||||
label={t("onlinePayments.fields.onlinePaymantableType", "online_paymantable_type")}
|
||||
value={payment.onlinePaymantableType}
|
||||
/>
|
||||
<InfoRow
|
||||
label={t("onlinePayments.fields.createdAt", "Döredilen wagty")}
|
||||
value={formatDateTime(payment.createdAt)}
|
||||
/>
|
||||
<InfoRow
|
||||
label={t("onlinePayments.fields.updatedAt", "Updated at")}
|
||||
value={formatDateTime(payment.updatedAt)}
|
||||
/>
|
||||
<InfoRow label={t("onlinePayments.fields.createdAt", "Döredilen wagty")} value={formatDateTime(payment.createdAt)} />
|
||||
<InfoRow label={t("onlinePayments.fields.updatedAt", "Updated at")} value={formatDateTime(payment.updatedAt)} />
|
||||
</Section>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user