connected with backups and currency rates
This commit is contained in:
1 parent
d8e903f24c
commit
5884ec831c
18 files changed
+893
-526
No files matched your search
@@ -16,7 +16,7 @@ import type { Card } from "@/features/cardTransactions/api/cardTransactionsApi";
|
||||
const PER_PAGE = 25;
|
||||
|
||||
export default function CardTransactionsPage() {
|
||||
const { t } = useTranslation();
|
||||
const { t, i18n } = useTranslation();
|
||||
const navigate = useNavigate();
|
||||
|
||||
const [page, setPage] = useState(1);
|
||||
@@ -44,7 +44,7 @@ export default function CardTransactionsPage() {
|
||||
{row.original.id}
|
||||
</button>
|
||||
),
|
||||
size: 80,
|
||||
size: 70,
|
||||
},
|
||||
{
|
||||
id: "name",
|
||||
@@ -62,7 +62,14 @@ export default function CardTransactionsPage() {
|
||||
id: "type",
|
||||
accessorKey: "type",
|
||||
header: t("cardTransaction.col.type", "Görnüşi"),
|
||||
cell: ({ row }) => <span className="text-sm text-foreground">{row.original.type}</span>,
|
||||
cell: ({ row }) => {
|
||||
const ct = row.original.cardType;
|
||||
const val =
|
||||
typeof ct?.name === "object"
|
||||
? ct.name[i18n.language as "tm" | "ru" | "en"] || ct.name.tm || ct.name.en
|
||||
: ct?.name || row.original.type || "—";
|
||||
return <span className="text-sm text-foreground">{val}</span>;
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "expiry",
|
||||
|
||||
Reference in new issue
Block a user