update new api reques and response
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
DropdownMenuTrigger,
|
||||
} from "@/shared/ui/dropdown-menu";
|
||||
import type { ColumnDef } from "@tanstack/react-table";
|
||||
import { Edit, EllipsisVertical, Eye, Trash } from "lucide-react";
|
||||
import { Edit, EllipsisVertical, Eye } from "lucide-react";
|
||||
import type { NavigateFunction } from "react-router-dom";
|
||||
|
||||
interface Props {
|
||||
@@ -15,10 +15,7 @@ interface Props {
|
||||
onDeleteClick: (district: DoctorListData) => void;
|
||||
}
|
||||
|
||||
export const columns = ({
|
||||
router,
|
||||
onDeleteClick,
|
||||
}: Props): ColumnDef<DoctorListData>[] => [
|
||||
export const columns = ({ router }: Props): ColumnDef<DoctorListData>[] => [
|
||||
{
|
||||
accessorKey: "id",
|
||||
header: () => <div className="text-center">№</div>,
|
||||
@@ -95,14 +92,14 @@ export const columns = ({
|
||||
>
|
||||
<Edit size={16} /> Tahrirlash
|
||||
</Button>
|
||||
<Button
|
||||
{/* <Button
|
||||
variant={"destructive"}
|
||||
size={"lg"}
|
||||
className="cursor-pointer"
|
||||
onClick={() => onDeleteClick(obj)}
|
||||
>
|
||||
<Trash size={16} /> {"O'chirish"}
|
||||
</Button>
|
||||
</Button> */}
|
||||
</DropdownMenuContent>
|
||||
</DropdownMenu>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user