diff --git a/src/components/Activities/AttendcesLogs.jsx b/src/components/Activities/AttendcesLogs.jsx index 68b73943..b765dc82 100644 --- a/src/components/Activities/AttendcesLogs.jsx +++ b/src/components/Activities/AttendcesLogs.jsx @@ -50,7 +50,7 @@ const AttendanceLog = ({ attendance, handleModalData, projectId }) => { - + diff --git a/src/components/Project/AssignRole.jsx b/src/components/Project/AssignRole.jsx index 336677c9..dd3ab32e 100644 --- a/src/components/Project/AssignRole.jsx +++ b/src/components/Project/AssignRole.jsx @@ -35,7 +35,7 @@ const [selectedRole, setSelectedRole] = useState("all"); const [selectedEmployees, setSelectedEmployees] = useState([]); -const { handleSubmit, control, setValue, watch, formState: { errors } } = useForm({ +const { handleSubmit, control, setValue, watch, formState: { errors },reset } = useForm({ defaultValues: { selectedEmployees: [], description:"" @@ -93,9 +93,10 @@ const onSubmit = async(data) => { }; try { - let response = await TasksRepository.assignTask( formattedData ); - console.log( response ) + // let response = await TasksRepository.assignTask( formattedData ); + // console.log( response ) showToast( "Task Successfully Assigend", "success" ) + reset() closeModal() } catch ( error ) { diff --git a/src/components/Project/Infrastructure/Building.jsx b/src/components/Project/Infrastructure/Building.jsx index 30d5eacf..4f059964 100644 --- a/src/components/Project/Infrastructure/Building.jsx +++ b/src/components/Project/Infrastructure/Building.jsx @@ -12,14 +12,14 @@ const Building = ( {building, toggleBuilding, expandedBuildings, getContent} ) = onClick={() => toggleBuilding(building.id)} >
-
+
{building.name}   {expandedBuildings.includes(building.id) ? ( ) : ( )} -
+
diff --git a/src/components/Project/Infrastructure/BuildingModel.jsx b/src/components/Project/Infrastructure/BuildingModel.jsx index f7169b2f..89216ea7 100644 --- a/src/components/Project/Infrastructure/BuildingModel.jsx +++ b/src/components/Project/Infrastructure/BuildingModel.jsx @@ -124,10 +124,10 @@ const BuildingModel = ({
- -
diff --git a/src/components/Project/Infrastructure/FloorModel.jsx b/src/components/Project/Infrastructure/FloorModel.jsx index e2c5f6ac..cc78d4b4 100644 --- a/src/components/Project/Infrastructure/FloorModel.jsx +++ b/src/components/Project/Infrastructure/FloorModel.jsx @@ -97,7 +97,6 @@ const FloorModel = ({ // Handle form submission const onFormSubmit = (data) => { - onSubmit(data); }; @@ -186,14 +185,14 @@ const FloorModel = ({ )}
-
{workArea?.workItems && workArea.workItems.length > 0 ? ( workArea.workItems.map((workItem) => ( - + )) ) : ( diff --git a/src/components/Project/Infrastructure/WorkItem.jsx b/src/components/Project/Infrastructure/WorkItem.jsx index 9b2902a7..278d53db 100644 --- a/src/components/Project/Infrastructure/WorkItem.jsx +++ b/src/components/Project/Infrastructure/WorkItem.jsx @@ -39,7 +39,7 @@ const WorkItem = ({ workItem, forBuilding, forFloor, forWorkArea }) => { workArea: forWorkArea, workItem, }; - +console.log(assigndata) const hasWorkItem = NewWorkItem && NewWorkItem return ( @@ -108,7 +108,7 @@ const WorkItem = ({ workItem, forBuilding, forFloor, forWorkArea }) => { data-bs-target="#project-modal" onClick={openModal} > - Assign + Assign )}
NameName Check-In