finished card pages

This commit is contained in:
Jelaletdin12 committed 2026-05-07 22:46:09 +05:00
1 parent c7797c3e31
commit ca3d2f6db9
17 files changed
+1847 -18

No files matched your search

+11 -6
View File
@@ -176,12 +176,17 @@ export default function CardPinsPage() {
];
const columnMeta = columns
.filter((c) => "accessorKey" in c && c.id !== "actions")
.map((c) => ({
id: ("accessorKey" in c ? String(c.accessorKey) : c.id) as string,
label:
typeof c.header === "string" ? c.header : String(c.accessorKey ?? ""),
}));
.filter((c) => ("accessorKey" in c || "id" in c) && c.id !== "actions")
.map((c) => {
const id = ("accessorKey" in c ? String(c.accessorKey) : c.id) as string;
const label =
typeof c.header === "string"
? c.header
: "accessorKey" in c
? String(c.accessorKey)
: id;
return { id, label };
});
return (
<div className="space-y-4">
@@ -1,4 +1,4 @@
import { useParams, useNavigate, Link } from 'react-router-dom'
import { useParams, useNavigate } from 'react-router-dom'
import { useTranslation } from 'react-i18next'
import { useCardPin, useDeleteCardPin } from '@/features/cardPins/hooks/useCardPins'
import type { CardPinStatus } from '@/features/cardPins/api/cardPinApi'
@@ -78,7 +78,7 @@ function PassportImageRow({ label, url }: { label: string; url?: string }) {
className="flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors w-fit"
>
<DownloadCloud size={13} />
{('Download', 'Göçürip al')}
{( 'Göçürip al')}
</a>
</>
) : (