added file upload component

This commit is contained in:
victorAnumudu
2024-04-12 17:41:58 +01:00
parent 856c70628a
commit b48cb48213
4 changed files with 64 additions and 14 deletions
@@ -88,10 +88,10 @@ export default function AssignMediaTask({
<Form>
<>
<div
className={`job-action-modal-body w-full min-h-[450px] max-h-[450px] overflow-y-auto md:grid md:grid-cols-2`}
className={`job-action-modal-body w-full h-[500px] overflow-y-auto md:grid md:grid-cols-2`}
>
<div className="p-4 pt-0">
<div className="p-4 w-full min-h-[410px] max-h-[410px] overflow-y-auto bg-slate-100 rounded-md dark:bg-[#11131f] dark:text-white">
<div className="p-4 w-full h-[450px] overflow-y-auto bg-slate-100 rounded-md dark:bg-[#11131f] dark:text-white">
{commonMedia?.data?.length ? (
commonMedia?.data?.map((item, index) => (
<div
@@ -3,6 +3,7 @@ import LoadingSpinner from '../../Spinners/LoadingSpinner'
import { NewTasks } from './forms'
import { PriceFormatter } from '../../Helpers/PriceFormatter'
import { useSelector } from 'react-redux';
import AttachFile from '../../attachmentCom/AttachFile';
export default function AssignPrevNewTask({
jobList,
@@ -32,7 +33,7 @@ export default function AssignPrevNewTask({
) : (
<>
<div
className={`job-action-modal-body w-full min-h-[450px] max-h-[450px] overflow-y-auto md:grid ${
className={`job-action-modal-body w-full h-[500px] overflow-y-auto md:grid ${
taskType !== "new" ? "md:grid-cols-2" : "md:grid-cols-1"
}`}
>
@@ -63,7 +64,7 @@ export default function AssignPrevNewTask({
</div>
{/* Task Type === select */}
{taskType == "select" && (
<div className="p-4 w-full h-[400px] overflow-y-auto bg-slate-100 rounded-md dark:bg-[#11131f] dark:text-white">
<div className="p-4 w-full h-[450px] overflow-y-auto bg-slate-100 rounded-md dark:bg-[#11131f] dark:text-white">
{jobList?.data?.length ? (
jobList?.data?.map((item, index) => (
<div
@@ -162,13 +163,10 @@ export default function AssignPrevNewTask({
</div>
</div>
{/* Dummy, no value found for created! thus commented*/}
{/* <div className="my-3 sm:flex items-center">
<Detail
label="Created"
value={`Dummy, no value found for created!`}
/>
</div> */}
{/* ATTACHMENT SECTION*/}
<div className="w-full max-h-32">
<AttachFile data={activeTask.data} />
</div>
<div className="my-3">
<label className="w-full job-label">