Compare commits

..

1 Commits

Author SHA1 Message Date
victorAnumudu c106e66f44 assign task bug fixed 2023-07-16 22:13:47 +01:00
3 changed files with 14 additions and 14 deletions
@@ -63,7 +63,7 @@ const AssignTaskPopout = React.memo(({ action, details, situation, familyDetail
// API PAYLOADS // API PAYLOADS
job_id: activeTask.data?.job_id, job_id: activeTask.data?.job_id,
job_uid: activeTask.data?.job_uid, job_uid: activeTask.data?.job_uid,
family_uid: familyDetails.uid, family_uid: familyDetails?.uid || details?.family_uid,
job_description: activeTask.data?.description, job_description: activeTask.data?.description,
assign_mode: 110011, assign_mode: 110011,
}; };
+6 -6
View File
@@ -404,7 +404,7 @@ function ActiveJobs(props) {
<div className="files"> <div className="files">
<label <label
htmlFor="file" htmlFor="file"
className="btn-gradient text-base tracking-wide px-4 py-2 rounded-full text-white cursor-pointer" className="h-20 btn-gradient text-base tracking-wide px-4 py-2 rounded-full text-white cursor-pointer"
> >
Select Files to Upload Select Files to Upload
</label> </label>
@@ -463,7 +463,7 @@ function ActiveJobs(props) {
<button <button
type="button" type="button"
onClick={handleClearAll} onClick={handleClearAll}
className="border-gradient text-base tracking-wide px-4 py-2 rounded-full" className="border-gradient text-base tracking-wide px-4 py-3 rounded-full"
> >
<span className="text-gradient">Clear</span> <span className="text-gradient">Clear</span>
</button> </button>
@@ -471,7 +471,7 @@ function ActiveJobs(props) {
<button <button
onClick={sendFile} onClick={sendFile}
type="button" type="button"
className='btn-gradient text-base tracking-wide px-4 py-2 rounded-full text-white cursor-pointer flex justify-center items-center' className="btn-gradient text-base tracking-wide px-4 py-3 rounded-full flex justify-center items-center"
> >
{requestStatus.loading ? ( {requestStatus.loading ? (
<LoadingSpinner size="6" color="sky-blue" /> <LoadingSpinner size="6" color="sky-blue" />
@@ -495,7 +495,7 @@ function ActiveJobs(props) {
<button <button
onClick={sendTaskMessage} onClick={sendTaskMessage}
type="button" type="button"
className='btn-gradient text-base tracking-wide px-4 py-2 rounded-full text-white cursor-pointer' className="btn-gradient text-base text-white tracking-wide px-4 py-3 rounded-full"
> >
{requestStatus.loading ? ( {requestStatus.loading ? (
<LoadingSpinner size="6" color="sky-blue" /> <LoadingSpinner size="6" color="sky-blue" />
@@ -520,9 +520,9 @@ function ActiveJobs(props) {
<button <button
type="button" type="button"
onClick={popUpHandler} onClick={popUpHandler}
className="btn-gradient text-base tracking-wide px-4 py-2 rounded-full text-white cursor-pointer flex justify-center items-center" className="px-2 py-1 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white"
> >
View all view all
</button> </button>
</div> </div>
{props.activeJobMesList.loading ? ( {props.activeJobMesList.loading ? (
@@ -166,22 +166,22 @@ export default function ManageInterestOffer(props) {
<div className="w-full"> <div className="w-full">
{/* switch button */} {/* switch button */}
<div className="my-1 flex items-center border-b border-slate-300"> <div className="pl-7 my-2 flex items-center border-b border-slate-300 gap-3">
<button <button
name="info" name="info"
onClick={(e) => setTab(e.target.name)} onClick={(e) => setTab(e.target.name)}
className={`p-2 text-lg font-bold text-slate-600 dark:text-white border ${ className={`px-4 py-1 rounded-t-2xl ${
tab == "info" ? "border-sky-blue" : "border-slate-300" tab == "info" ? "bg-[#4687ba] border-[2px] border-[#4687ba] text-white" : "bg-white text-[#000] border-t-[2px]"
} tracking-wide transition duration-200`} }`}
> >
Info Info
</button> </button>
<button <button
name="message" name="message"
onClick={(e) => setTab(e.target.name)} onClick={(e) => setTab(e.target.name)}
className={`p-2 text-lg font-bold text-slate-600 dark:text-white border ${ className={`px-4 py-1 rounded-t-2xl ${
tab == "message" ? "border-sky-blue" : "border-slate-300" tab == "message" ? "bg-[#4687ba] border-[2px] border-[#4687ba] text-white" : "bg-white text-[#000] border-t-[2px]"
} tracking-wide transition duration-200`} }`}
> >
Messages ({messageList.data.length}) Messages ({messageList.data.length})
</button> </button>