diff --git a/src/components/FamilyAcc/FamilyPopout/AssignTaskPopout.jsx b/src/components/FamilyAcc/FamilyPopout/AssignTaskPopout.jsx
index 4561d9f..545f6b8 100644
--- a/src/components/FamilyAcc/FamilyPopout/AssignTaskPopout.jsx
+++ b/src/components/FamilyAcc/FamilyPopout/AssignTaskPopout.jsx
@@ -187,13 +187,6 @@ const AssignTaskPopout = ({
};
}
- if(assignType == 'media'){ // FOR ASSIGNING MEDIA TASK
- setRequestStatus({ loading: false, status: false, message: "You cannnot assign, work still process" });
- return setTimeout(()=>{
- setRequestStatus({ loading: false, status: false, message: "" });
- },2000)
- }
-
apiCall
.assignFamilyTask(reqData)
.then((res) => {
@@ -268,7 +261,7 @@ const AssignTaskPopout = ({
// values.family_uid = selectedFamilyUid
// values.media_uid = activeMedia.uid
// values.amount = values.amount * 100
- let reqData = {...values, family_uid:selectedFamilyUid, media_uid:activeMedia.uid, amount:values.amount * 100}
+ let reqData = {...values, assign_mode:'110012', family_uid:selectedFamilyUid, media_uid:activeMedia.uid, amount:values.amount * 100}
console.log(reqData)
return setTimeout(()=>{
setRequestStatus({ loading: false, status: false, message: "" });
diff --git a/src/components/FamilyAcc/FamilyPopout/dummy.jsx b/src/components/FamilyAcc/FamilyPopout/dummy.jsx
deleted file mode 100644
index 375a573..0000000
--- a/src/components/FamilyAcc/FamilyPopout/dummy.jsx
+++ /dev/null
@@ -1,232 +0,0 @@
-{familyTask?.loading ? (
-
-
-
- ) : (
- <>
-
-
-
- {/* Task Type === select */}
- {taskType == "select" && (
-
- {familyTask?.data?.length ? (
- familyTask?.data?.map((item, index) => (
-
handleActiveTask(item.job_uid, item)}
- >
-
- handleActiveTask(item.job_uid, item)
- }
- className="w-[15px] h-[15px] cursor-pointer"
- />
-
- {item?.title}
-
-
- ))
- ) : (
-
- No Task found!
-
- )}
-
- )}
- {taskType == "new" && (
-
-
-
- )}
-
-
- {/*Right Hand Side for details && Task Type === select */}
- {taskType == "select" && (
- <>
- {familyTask?.data?.length > 0 ? (
-
-
-
- {activeTask?.data?.title}
-
- {/*
-
-
*/}
-
-
-
- {activeTask?.data?.description}
-
-
-
-
-
-
-
- {PriceFormatter(
- activeTask?.data?.price * 0.01,
- activeTask?.data?.currency,
- activeTask?.data?.curreny_code
- )}
-
-
-
-
-
-
{`${activeTask?.data?.timeline_days} day(s)`}
-
-
-
-
-

-
-
-
-
- {/* Dummy, no value found for created! thus commented*/}
- {/*
-
-
*/}
-
-
-
-
-
-
-
- ) : (
- <>>
- )}
- >
- )}
-
-
- {/* BTN */}
-
- {/* error or success display */}
-
- {requestStatus.message != "" &&
- (!requestStatus.status ? (
-
- {requestStatus.message}
-
- ) : (
- requestStatus.status && (
-
- {requestStatus.message}
-
- )
- ))}
-
-
- {/* End of error or success display */}
-
-
-
- {requestStatus.loading ? (
-
- ) : (
-
- )
- // : (
- //
- // )
- }
-
-
-
- >
- )}
\ No newline at end of file
diff --git a/src/components/VideoCom/VideoElement.jsx b/src/components/VideoCom/VideoElement.jsx
new file mode 100644
index 0000000..aed358e
--- /dev/null
+++ b/src/components/VideoCom/VideoElement.jsx
@@ -0,0 +1,22 @@
+import React, { useEffect, useRef } from 'react'
+
+
+export default function VideoElement({videoId}) {
+ let videoRef = useRef(null)
+
+ useEffect(()=>{
+ if(videoRef.current){
+ videoRef.current.pause()
+ videoRef.current.removeAttribute('src')
+ videoRef.current.load()
+ }
+ },[videoId])
+
+ return (
+
+ )
+}
+
\ No newline at end of file
diff --git a/src/services/UsersService.js b/src/services/UsersService.js
index d15521d..9938ec3 100644
--- a/src/services/UsersService.js
+++ b/src/services/UsersService.js
@@ -1343,7 +1343,19 @@ class usersService {
};
return this.postAuxEnd("/commonmedia", postData);
}
-
+
+ // API FUNCTION FOR PARENT TO ASSIGN MEDIA TASK
+ parentAssignMediaTask(reqData) {
+ var postData = {
+ uid: localStorage.getItem("uid"),
+ member_id: localStorage.getItem("member_id"),
+ sessionid: localStorage.getItem("session_token"),
+ action: apiConst.WRENCHBOARD_JOB_OFFER_SYSTEM,
+ ...reqData
+ };
+ return this.postAuxEnd("/assignmediatask", postData);
+ }
+
/*
- 20:27:30.118 FLOG_MAX [757411]: REQ_STRING(username)
- 20:27:30.118 FLOG_MAX [757411]: REQ_STRING(password)