diff --git a/src/components/MyActiveJobs/ActiveJobMessageMedia.jsx b/src/components/MyActiveJobs/ActiveJobMessageMedia.jsx new file mode 100644 index 0000000..a156072 --- /dev/null +++ b/src/components/MyActiveJobs/ActiveJobMessageMedia.jsx @@ -0,0 +1,63 @@ +import React, { useState } from "react"; +import dataImage1 from "../../assets/images/data-table-user-1.png"; +import dataImage2 from "../../assets/images/data-table-user-2.png"; +import dataImage3 from "../../assets/images/data-table-user-3.png"; +import dataImage4 from "../../assets/images/data-table-user-4.png"; +import SelectBox from "../Helpers/SelectBox"; + +export default function ActiveJobMessageMedia({ activeJobMesList }) { + return ( +
+
+ + + + + + + {activeJobMesList?.data?.length ? + ( + + {activeJobMesList.data.map((item, index) => + { + let imageLink = `${activeJobMesList?.image}${localStorage.getItem('session_token')}/contracts/${item.msg_uid}` + return ( + + + + ) + } + )} + + ) + : + activeJobMesList.error ? + ( + + + + + + ) + : + + + + + + } +
+
+
{item.msg_date} {item.msg_firstname}
+ {item.msg_type == 'FILE' ? + + : + + } +
+ +
Opps! an error occurred. Please try again!
No Message Found!
+
+
+ ) +} diff --git a/src/components/MyActiveJobs/ActiveJobs.jsx b/src/components/MyActiveJobs/ActiveJobs.jsx index cac3e8f..1ee51a0 100644 --- a/src/components/MyActiveJobs/ActiveJobs.jsx +++ b/src/components/MyActiveJobs/ActiveJobs.jsx @@ -546,7 +546,7 @@ function ActiveJobs(props) { {/* MESSAGE SECTION */}
-
+

Message +

+ {props.details?.title && props.details.title} +

+
+
+ {/* end of job title */} +
+ +
+
+ +
+ +
+ +
+
+

+ {props?.details && props.details.job_to} +

+
+

+ Description:{" "} +

+

+ {props?.details && props.details.description} +

+
+
+ +
+
+ + {/* job details */} +
+

Delivery Detail

+ {passDue ? ( +
+

+ Due: + {props?.details && props.details.delivery_date.split(" ")[0]} +

+ {props?.delivery_date && ( +

+ {props.details.delivery_date.split(" ")[1]} +

+ )} +
+ ) : ( +
+

Due:

+
+

+ +

+
+ Hrs + Min + Sec +
+
+
+ )} + +
+ + Price:{" "} + + {thePrice} +
+ +
+ + Duration:{" "} + + + {props.details?.timeline_days && props.details.timeline_days}{" "} + day(s) + +
+
+ + No:{" "} + + + {props.details?.contract && props.details.contract} + +
+
+ {/* end of job details */} +
+
+ +
+ {/* TEXTAREA SECTION */} +
+
+
+ + +
+ {tab == "message" ? ( +