Message
diff --git a/src/components/MyActiveJobs/ActiveJobsMedia.jsx b/src/components/MyActiveJobs/ActiveJobsMedia.jsx
index 3e545eb..b2f12b5 100644
--- a/src/components/MyActiveJobs/ActiveJobsMedia.jsx
+++ b/src/components/MyActiveJobs/ActiveJobsMedia.jsx
@@ -15,6 +15,7 @@ const VideoElement = lazy(() => import("../VideoCom/VideoElement"));
import usersService from "../../services/UsersService";
import { PriceFormatter } from "../Helpers/PriceFormatter";
import { SocketValues } from "../Contexts/SocketIOContext";
+import TabButton from "../customTabs/TabButton";
function ActiveJobsMedia(props) {
let {sendMessage, joinRoom} = SocketValues() // destructures 'SEND MESSAGE' and 'JOIN ROOM' FUNCTIONS FROM SOCKET
@@ -32,7 +33,9 @@ function ActiveJobsMedia(props) {
const [filesToSend, setFilesToSend] = useState([]); // State to hold the value of files to be sent
- const [tab, setTab] = useState("message");
+ // const [tab, setTab] = useState("message");
+ const tabs = ["Send Message", "Send Files",] //STATE FOR SWITCHING BETWEEN TABS
+ const [selectedTab, setSelectedTab] = useState(tabs[0]);
const [requestStatus, setRequestStatus] = useState({
loading: false,
@@ -96,9 +99,9 @@ function ActiveJobsMedia(props) {
// FUNCTION TO CLEAR ALL TYPED MESSAGE OR FILES
const handleClearAll = ({ target: { name } }) => {
- if (tab == "message") {
+ if (selectedTab == "Send Message") {
setMessageToSend("");
- } else if (tab == "files") {
+ } else if (selectedTab == "Send Files") {
setFilesToSend([]);
} else {
return;
@@ -273,317 +276,290 @@ function ActiveJobsMedia(props) {
return (
- {/* job title */}
- {/*
-
-
-
{
- if (props.details.pathname == "/manage-family") {
- navigate(
- props.details.pathname,
- { state: { ...props.details.accountDetails } },
- { replace: true }
- );
- } else {
- navigate(props.details.pathname, { replace: true });
- }
- }}
- >
-
-
-
-
-
- {props.details?.title && props.details.title}
-
-
-
-
*/}
- {/* end of job title */}
-
-
-
-
+
+
-
+
-
-
- {props?.details && props.details.job_to}
-
-
-
- Description:{" "}
-
-
- {props?.details && props.details.description}
-
-
-
-
-
- Delivery Detail:{" "}
-
-
- {props?.details && props.details.job_description}
-
-
-
-
-
-
-
+ {/*
+ {props?.details && props.details.job_to}
+
*/}
+
+
+ Description:{" "}
+
+
+ {props?.details && props.details.description}
+
+
+
+
+
+ Delivery Detail:{" "}
+
+
+ {props?.details && props.details.job_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
-
-
-
- )}
+
+
+
+
+ {/* 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
+
+
+
+ )}
-
-
- Reward:{" "}
-
- {thePrice}
-
+
+
+ Reward:{" "}
+
+ {thePrice}
+
-
-
- Duration:{" "}
-
-
- {props.details?.timeline_days && props.details.timeline_days}{" "}
- day(s)
-
-
- {/*
-
- No:{" "}
-
-
- {props.details?.contract && props.details.contract}
-
-
*/}
+
+
+ Duration:{" "}
+
+
+ {props.details?.timeline_days && props.details.timeline_days}{" "}
+ day(s)
+
+
+
+ {/* end of job details */}
- {/* end of job details */}
-
+
-
- {/* TEXTAREA SECTION */}
-
-
-
-
+ {/* TEXTAREA SECTION */}
+
+
+ {/*
+ setTab(e.target.name)}
+ className={`px-4 xl:px-1 xxl:px-4 text-sm py-1 rounded-t-2xl ${
+ tab == "message"
+ ? "bg-[#4687ba] border-[2px] border-[#4687ba] text-white"
+ : "bg-white text-[#000] border-t-[2px]"
+ }`}
+ >
+ Send Message
+
+ setTab(e.target.name)}
+ className={`px-4 xl:px-1 xxl:px-4 text-sm py-1 rounded-t-2xl ${
+ tab == "files"
+ ? "bg-[#4687ba] border-[2px] border-[#4687ba] text-white"
+ : "bg-white text-[#000] border-t-[2px]"
+ }`}
+ >
+ Send Files
+
+
*/}
+ {/* switch button */}
+
+ {tabs.map((item) => (
+
+ ))}
+
+ {/* switch button */}
+
+ {selectedTab == "Send Message" ? (
+
+
- {tab == "message" ? (
-
- ) : (
-
-
-
- Select Files to Upload
-
-
-
-
- {filesToSend.length > 0 &&
- filesToSend.map((item, index) => (
-
- {item.name}
- handleRemoveImage(item)}
- className="px-2 flex justify-center items-center rounded-full border border-red-500 text-red-500"
- >
- x
-
-
- ))}
-
+
+ ) : (
+
+
+
+
+ Select Files to Upload
+
+
+
+
+ {filesToSend.length > 0 &&
+ filesToSend.map((item, index) => (
+
+ {item.name}
+ handleRemoveImage(item)}
+ className="px-2 flex justify-center items-center rounded-full border border-red-500 text-red-500"
+ >
+ x
+
+
+ ))}
+
+
)}
-
-
- {/* ERROR DISPLAY AND SUBMIT BUTTON */}
-
- {/* error or success display */}
- {requestStatus.message != "" &&
- (!requestStatus.status ? (
-
- {requestStatus.message}
-
- ) : (
- requestStatus.status && (
-
- {requestStatus.message}
-
- )
- ))}
-
- {/* End of error or success display */}
-
- {/* Buttons Sections */}
-
-
-
- Clear
-
- {tab == "files" ? (
+ {/* Buttons Sections */}
+
+
- {requestStatus.loading ? (
-
- ) : (
- <>
- Clear
+
+ {selectedTab == "Send Files" ? (
+
-
-
+ {requestStatus.loading ? (
+
+ ) : (
+ <>
+
+
+
- Upload Files
- >
- )}
-
- ) : (
-
- {requestStatus.loading ? (
-
+ Upload Files
+ >
+ )}
+
) : (
-
Send
+
+ {requestStatus.loading ? (
+
+ ) : (
+ Send
+ )}
+
)}
-
- )}
+
-
- {/* end of Buttons Sections */}
-
- {/* END OF TEXTAREA */}
+ {/* end of Buttons Sections */}
+
+
- {/* MESSAGE SECTION */}
-
-
-
- Message
-
- View all
-
-
-
- {props.activeJobMesList.loading ? (
-
- ) : (
-
- )}
-
- {/* END OF MESSAGE */}
-
-
+ {/* ERROR DISPLAY AND SUBMIT BUTTON */}
+
+ {/* error or success display */}
+ {requestStatus.message != "" &&
+ (!requestStatus.status ? (
+
+ {requestStatus.message}
+
+ ) : (
+ requestStatus.status && (
+
+ {requestStatus.message}
+
+ )
+ ))}
+
+ {/* End of error or success display */}
+
+ {/* END OF TEXTAREA */}
+
+ {/* MESSAGE SECTION */}
+
+
+
+ Message
+
+ View all
+
+
+
+ {props.activeJobMesList.loading ? (
+
+ ) : (
+
+ )}
+
+ {/* END OF MESSAGE */}
+
+
{/* POPOUT SECTION */}
{popUp && (
diff --git a/src/components/MyActiveJobs/JobActions/CurrentTaskAction.jsx b/src/components/MyActiveJobs/JobActions/CurrentTaskAction.jsx
index 924831f..7877744 100644
--- a/src/components/MyActiveJobs/JobActions/CurrentTaskAction.jsx
+++ b/src/components/MyActiveJobs/JobActions/CurrentTaskAction.jsx
@@ -60,12 +60,12 @@ function CurrentTaskAction({jobDetails}) {
}
return (
-
+
-
+
{jobDetails.job_type == 'MEDIA' ?
-
-
+
+
I have completed this task
diff --git a/src/components/MyActiveJobs/JobActions/PastDueJobAction.jsx b/src/components/MyActiveJobs/JobActions/PastDueJobAction.jsx
index 9ef169e..0d22c4f 100644
--- a/src/components/MyActiveJobs/JobActions/PastDueJobAction.jsx
+++ b/src/components/MyActiveJobs/JobActions/PastDueJobAction.jsx
@@ -121,7 +121,7 @@ function PastDueJobAction({jobDetails}) {
Cancel or Extend Timeline
@@ -133,14 +133,14 @@ function PastDueJobAction({jobDetails}) {
{popUp && (
-
-
-
+
+
+
Past Due Task
-
+
{setChecked(prev => !prev)}}
className='w-6 h-6 text-sky-blue bg-gray-100 focus:ring-sky-blue'
/>
-
I am ready to cancel this task
+
I am ready to cancel this task
-
+
{reqStatus.loading && action=='cancel'?
:
-
+
Cancel this task
}
{/* EXTEND TIMELINE SECTION */}
-
+
-
Extend the timeline by:
+
Extend the timeline by:
{setExtendedTime(target.value)}}
- className='text-base p-2 text-dark-gray dark:text-white rounded-md border border-slate-300 outline-0'
+ className='text-base p-2 text-dark-gray dark:text-white border border-slate-300 outline-0 rounded-full'
>
select
1 days
@@ -204,25 +204,27 @@ function PastDueJobAction({jobDetails}) {
{reqStatus.loading && action=='extend' ?
:
-
- Extend Timeline
-
+
+
+ Extend Timeline
+
+
}
{/* FOR SUCCESS/ERROR DISPLAY SECTION*/}
-
+
{reqStatus.message != "" &&
(!reqStatus.status ? (
{reqStatus.message}
) : (
reqStatus.status && (
{reqStatus.message}
@@ -232,17 +234,17 @@ function PastDueJobAction({jobDetails}) {
{/* END OF FOR SUCCESS/ERROR DISPLAY SECTION*/}
- {/* cancel btn */}
-
-
- Cancel
- {/* Cancel */}
-
-
+ {/* cancel btn */}
+
+
+ Cancel
+ {/* Cancel */}
+
+
)}
diff --git a/src/components/MyJobs/MyJobTable.jsx b/src/components/MyJobs/MyJobTable.jsx
index 1e94fd8..fd44f72 100644
--- a/src/components/MyJobs/MyJobTable.jsx
+++ b/src/components/MyJobs/MyJobTable.jsx
@@ -7,13 +7,14 @@ import { handlePagingFunc } from "../Pagination/HandlePagination";
import PaginatedList from "../Pagination/PaginatedList";
import LoadingSpinner from "../Spinners/LoadingSpinner";
import DeleteJobPopout from "../jobPopout/DeleteJobPopout";
-import EditJobPopOut from "../jobPopout/EditJobPopout";
+// import EditJobPopOut from "../jobPopout/EditJobPopout";
import DeleteIcon from "../../assets/images/icon-delete.svg";
import EditIcon from "../../assets/images/icon-edit.svg";
import { tableReload } from "../AddJob/settings";
import CreditPopup from "../MyWallet/Popup/CreditPopup";
import JobListPopout from "../jobPopout/JobListPopout";
+import EditJobPopoutNew from "../jobPopout/EditJobPopoutNew";
export default function MyJobTable({ MyJobList, reloadJobList, className }) {
const dispatch = useDispatch();
@@ -182,7 +183,7 @@ export default function MyJobTable({ MyJobList, reloadJobList, className }) {
{/* END of Delete Job Popout */}
{editJob.show && (
-
{
setEditJob({
diff --git a/src/components/MyTasks/MyOffersFamilyTable.jsx b/src/components/MyTasks/MyOffersFamilyTable.jsx
index c8d4211..d0631b5 100644
--- a/src/components/MyTasks/MyOffersFamilyTable.jsx
+++ b/src/components/MyTasks/MyOffersFamilyTable.jsx
@@ -119,7 +119,7 @@ export default function MyOffersFamilyTable({ className, familyOffers, image_ser
{/* trending products */}
-
+
{familyOffers &&
familyOffers.length > 0 &&
diff --git a/src/components/MyWallet/Popup/AddFundDollars.jsx b/src/components/MyWallet/Popup/AddFundDollars.jsx
index b981dcd..489f6f2 100644
--- a/src/components/MyWallet/Popup/AddFundDollars.jsx
+++ b/src/components/MyWallet/Popup/AddFundDollars.jsx
@@ -260,13 +260,13 @@ function AddFundDollars(props) {
{/* switch button */}