changed payment history api in visa/master payments

This commit is contained in:
Jelaletdin12 committed 2026-10-24 19:44:25 +05:00
1 parent cbfb467651
commit 879ed77121
15 files changed
+1174 -190

No files matched your search

+12 -4
View File
@@ -22,13 +22,21 @@ export function StatusCell({ status, prefix = "status", fallbackLabels, fallback
return <StatusBadge label={label} variant={variant} />;
}
export function ActiveStatusCell({ active }: { active: boolean }) {
interface ActiveStatusCellProps {
active?: boolean;
status?: boolean;
labelActive?: string;
labelInactive?: string;
}
export function ActiveStatusCell({ active, status, labelActive, labelInactive }: ActiveStatusCellProps) {
const { t } = useTranslation();
const isActive = Boolean(active ?? status);
return (
<StatusBadge
label={active ? t("common.active", "Işjeň") : t("common.inactive", "Işjeň däl")}
variant={active ? "success" : "default"}
icon={active ? CheckCircle2 : XCircle}
label={isActive ? (labelActive ?? t("common.active", "Işjeň")) : (labelInactive ?? t("common.inactive", "Işjeň däl"))}
variant={isActive ? "success" : "default"}
icon={isActive ? CheckCircle2 : XCircle}
/>
);
}