diff --git a/src/App.tsx b/src/App.tsx index c22547e..2f629ef 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -304,7 +304,7 @@ const App: React.FC = () => { useEffect(() => { const handleResize = () => { - if (window.innerWidth <= 768) { + if (window.innerWidth <= 1000) { setCollapsed(true); } else { setCollapsed(false); diff --git a/src/Components/Tasks/AddTask.tsx b/src/Components/Tasks/AddTask.tsx index 78ed2b1..850e405 100644 --- a/src/Components/Tasks/AddTask.tsx +++ b/src/Components/Tasks/AddTask.tsx @@ -183,7 +183,7 @@ const AddTask = ({ @@ -290,7 +291,17 @@ const AddTask = ({ - + + + - - - { const moment = require("moment-timezone"); - const theme = localStorage.getItem("theme") === "true" ? true : false; + const themes = localStorage.getItem("theme") === "true" ? true : false; const [text, setText] = useState(recordTask?.note); const [pti, setPti] = useState(recordTask?.pti); const [status, setStatus] = useState(recordTask?.status); const [teamName, setTeamName] = useState(recordTask?.assigned_to?.name); const { data, isLoading } = useTaskHistory(recordTask?.id); + const { token } = theme.useToken(); + const handleCancel = () => { setModalOpen(!modalOpen); }; @@ -211,13 +209,13 @@ const TaskModal = ({ onCancel={handleCancel} footer={null} open={modalOpen} - width={800} + width={700} maskClosable={true} // style={{ position: "fixed", right: 0, top: 0, bottom: 0, height: 1000 }} > -
-
-

+

+
+

{recordTask?.customer?.name}

@@ -301,36 +315,36 @@ const TaskModal = ({

-

Comapany

-

+

Comapany

+

{recordTask?.company?.name}

-

Driver

-

+

Driver

+

{recordTask?.customer?.name}

-

Service

-

+

Service

+

{recordTask?.service?.title}

-

Team

-

{teamName}

+

Team

+

{teamName}

-

Assignee

-

+

Assignee

+

{recordTask?.in_charge?.username}

-

PTI

-

+

PTI

+

{pti === false ? "Do" : "No need"}

- +