diff --git a/src/components/MyActiveJobs/ActiveJobMessage.jsx b/src/components/MyActiveJobs/ActiveJobMessage.jsx index ab826bc..f971207 100644 --- a/src/components/MyActiveJobs/ActiveJobMessage.jsx +++ b/src/components/MyActiveJobs/ActiveJobMessage.jsx @@ -19,7 +19,7 @@ export default function ActiveJobMessage({ activeJobMesList }) { // } return ( -
+
diff --git a/src/components/MyActiveJobs/ActiveJobs.jsx b/src/components/MyActiveJobs/ActiveJobs.jsx index 5a2704d..5d2ec03 100644 --- a/src/components/MyActiveJobs/ActiveJobs.jsx +++ b/src/components/MyActiveJobs/ActiveJobs.jsx @@ -12,7 +12,7 @@ import IndexJobActions from "./JobActions/IndexJobActions"; import usersService from "../../services/UsersService"; import { PriceFormatter } from "../Helpers/PriceFormatter"; import { SocketValues } from "../Contexts/SocketIOContext"; -import TabButton from "../customTabs/TabButton"; +import ManageJobTab from "../customTabs/ManageJobTab"; import AttachFile from "../attachmentCom/AttachFile"; import JobDetailPopout from "./JobDetailPopout"; @@ -408,7 +408,7 @@ function ActiveJobs(props) { {/* switch button */}
{tabs.map((item) => ( -
-
-
+
+
{activeJobMesList.loading ? ( ) : (
- + {/* - + - + */} {activeJobMesList?.data?.length ? ( - {activeJobMesList?.data?.map((item, index) => ( + {activeJobMesList?.data?.map((item, index) => { + let imageLink = `${activeJobMesList?.image}${localStorage.getItem('session_token')}/contracts/${item.msg_uid}` + + return ( - ))} + ) + })} ) : activeJobMesList.error ? ( diff --git a/src/components/Partials/MobileSideBar.jsx b/src/components/Partials/MobileSideBar.jsx index b19fe1d..c041440 100644 --- a/src/components/Partials/MobileSideBar.jsx +++ b/src/components/Partials/MobileSideBar.jsx @@ -92,7 +92,7 @@ export default function MobileSidebar({ {/* Using mini component reduces the bulk amount of html */} {/* Using mini component reduces the bulk amount of html */} {} }) { + return ( + + ) +} +
-
+
{item.msg_date} {item.msg_firstname}
- + > */} + {item.msg_type == 'FILE' ? + + : + + }