From 9630a46070ed5d41154293290212363934f36e0a Mon Sep 17 00:00:00 2001 From: Dilmurod Date: Thu, 5 Dec 2024 14:59:34 +0500 Subject: [PATCH] bug Pagination --- src/Components/Companies/CompaniesEdit.tsx | 53 ++++++++++++++++++---- 1 file changed, 44 insertions(+), 9 deletions(-) diff --git a/src/Components/Companies/CompaniesEdit.tsx b/src/Components/Companies/CompaniesEdit.tsx index 9ebfe2d..bf1035b 100644 --- a/src/Components/Companies/CompaniesEdit.tsx +++ b/src/Components/Companies/CompaniesEdit.tsx @@ -15,9 +15,14 @@ import { Radio, RadioChangeEvent, Select, + theme, } from "antd"; import { companyController } from "../../API/LayoutApi/companies"; -import { DashboardOutlined } from "@ant-design/icons"; +import { + DashboardOutlined, + LeftOutlined, + RightOutlined, +} from "@ant-design/icons"; import Notfound from "../../Utils/Notfound"; import Table from "antd/es/table"; import AddDriver from "./AddDriver"; @@ -53,6 +58,8 @@ const CompanyEdit = () => { const customerData = useCustomerByComanyData({ page, page_size: 10 }, id); const { data, refetch, status } = useCompanyOne(id); + const { token } = theme.useToken(); + const showModal = () => { setOpen(true); }; @@ -346,17 +353,40 @@ const CompanyEdit = () => { direction="vertical" > + style={{ + backgroundColor: token.colorBgContainer, + color: token.colorText, + border: "none", + }} + > + + { let num = e.target.value; @@ -366,11 +396,16 @@ const CompanyEdit = () => { }} /> + style={{ + backgroundColor: token.colorBgContainer, + color: token.colorText, + border: "none", + }} + > + + {open && (