From d47a38d919a67f5476fe5edb1cecb027d8ec98cc Mon Sep 17 00:00:00 2001 From: Dilmurod Date: Thu, 5 Dec 2024 17:13:05 +0500 Subject: [PATCH] add task modal --- src/App.css | 10 ++----- src/Components/Tasks/AddTask.tsx | 44 ++++++++++++++++++++---------- src/Components/Tasks/TaskTable.tsx | 4 +-- 3 files changed, 34 insertions(+), 24 deletions(-) diff --git a/src/App.css b/src/App.css index 64e4904..db6e516 100644 --- a/src/App.css +++ b/src/App.css @@ -743,12 +743,6 @@ cursor: pointer; } -.ant-upload-wrapper .ant-upload-drag { - border: 0.5px solid rgba(215, 216, 224, 1); - padding: 25px 0; - color: #333333; -} - .card_stat { /* font-weight: 500; */ /* font-size: 20px; */ @@ -814,8 +808,8 @@ } .ant-upload-list-text { - overflow: scroll; - height: 50px; + /* overflow: scroll; */ + height: 0; } .ant-modal-mask { diff --git a/src/Components/Tasks/AddTask.tsx b/src/Components/Tasks/AddTask.tsx index 850e405..41970b9 100644 --- a/src/Components/Tasks/AddTask.tsx +++ b/src/Components/Tasks/AddTask.tsx @@ -30,6 +30,7 @@ import tt from "../../assets/tticon.svg"; import addicon from "../../assets/addiconpng.png"; //ts-ignore import fileUpload from "../../assets/upload-file.png"; +import closeIcon from "../../assets/closeIcon.png"; import AddCustomer from "../Customers/AddCustomer"; import AddDriver from "../Companies/AddDriver"; @@ -184,9 +185,26 @@ const AddTask = ({ + Add Task + + + } okText="Create" cancelText="Cancel" + centered={false} + bodyStyle={{ + height: 685, + }} onCancel={handleCancel} onOk={() => { form.validateFields().then(async (values) => { @@ -277,9 +295,6 @@ const AddTask = ({ onClick={(e) => setDriverOpen(true)} type="primary" style={{ - display: "flex", - alignItems: "center", - justifyContent: "space-between", marginTop: 5, marginLeft: 3, }} @@ -325,7 +340,7 @@ const AddTask = ({ - + - +