refactored code
This commit is contained in:
1 parent
5ed4c9a8ec
commit
d326361a03
46 files changed
+230
-592
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { useState } from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { CheckCircle2, XCircle } from "lucide-react";
|
||||
import { ActiveStatusCell } from "@/constants";
|
||||
import { DeleteDialog } from "@/components/deleteDialog";
|
||||
import { DataTable, type ColumnDef } from "@/components/dataTable";
|
||||
import { DataTableToolbar } from "@/components/dataTableToolbar";
|
||||
@@ -73,8 +73,7 @@ export default function ClientsPage() {
|
||||
{
|
||||
accessorKey: "active",
|
||||
header: t("clients.fields.isActive", "IŞJEŇ"),
|
||||
cell: ({ row }) =>
|
||||
row.original.active ? <CheckCircle2 size={18} className="text-emerald-500" /> : <XCircle size={18} className="text-destructive" />,
|
||||
cell: ({ row }) => <ActiveStatusCell active={row.original.active} />,
|
||||
size: 80,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user