Add payment module, BFF proxy, hub/dashboard/ops/PSP/merchant screens wired to real APIs, and mark payment-frontend complete in project status. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
840 B
TypeScript
24 lines
840 B
TypeScript
"use client";
|
|
|
|
import { PaymentListPage } from "@/modules/payment/components/PaymentListPage";
|
|
import { paymentApi } from "@/modules/payment/services/payment-api";
|
|
|
|
export const PaymentFeatureToggles = function PaymentFeatureTogglesPage() {
|
|
return (
|
|
<PaymentListPage
|
|
title="کلیدهای ویژگی"
|
|
description="PaymentFeatureToggle — پرچمهای L3 عملیاتی."
|
|
resourceKey="feature-toggles"
|
|
fetcher={(tenantId) => paymentApi.featureToggles.list(tenantId)}
|
|
filterKey="key"
|
|
columns={[
|
|
{ key: "key", header: "کلید" },
|
|
{ key: "enabled", header: "فعال", render: (r) => (r.enabled ? "بله" : "خیر") },
|
|
{ key: "created_at", header: "تاریخ", type: "datetime" },
|
|
]}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default PaymentFeatureToggles;
|