update new api reques and response

This commit is contained in:
Samandar Turgunboyev
2025-12-05 17:47:11 +05:00
parent 21725762c6
commit db6bfa7e40
30 changed files with 1755 additions and 262 deletions

View File

@@ -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>
);