diff --git a/src/components/JobGroups/AddGroup.jsx b/src/components/JobGroups/AddGroup.jsx index 10525de..c6f5379 100644 --- a/src/components/JobGroups/AddGroup.jsx +++ b/src/components/JobGroups/AddGroup.jsx @@ -135,28 +135,6 @@ export default function AddGroup({ action, situation, setUpdateList }) { /> -
- - {requestStatus.loading ? ( - - ) : ( - - )} -
{/* ERROR DISPLAY AND SUBMIT BUTTON */} {requestStatus.message != "" && @@ -177,6 +155,29 @@ export default function AddGroup({ action, situation, setUpdateList }) { ))} {/* End of error or success display */} + +
+ + {requestStatus.loading ? ( + + ) : ( + + )} +
); diff --git a/src/components/JobGroups/DeleteGroup.jsx b/src/components/JobGroups/DeleteGroup.jsx index b3993a9..8112b15 100644 --- a/src/components/JobGroups/DeleteGroup.jsx +++ b/src/components/JobGroups/DeleteGroup.jsx @@ -76,26 +76,6 @@ export default function DeleteGroup({action, situation, details}) { Are you sure, you want to delete
'{details?.group_name}' group?

-
- - {requestStatus.laoding ? ( - - ) : ( - - )} -
{/* ERROR DISPLAY AND SUBMIT BUTTON */} {requestStatus.message != "" && @@ -116,6 +96,26 @@ export default function DeleteGroup({action, situation, details}) { ))} {/* End of error or success display */} +
+ + {requestStatus.laoding ? ( + + ) : ( + + )} +
) diff --git a/src/components/JobGroups/DeleteMember.jsx b/src/components/JobGroups/DeleteMember.jsx index c6b0491..f99ea25 100644 --- a/src/components/JobGroups/DeleteMember.jsx +++ b/src/components/JobGroups/DeleteMember.jsx @@ -76,26 +76,6 @@ export default function DeleteMember({action, situation, details}) { Are you sure, you want to remove
'{details?.firstname} {details.lastname}'

-
- - {requestStatus.laoding ? ( - - ) : ( - - )} -
{/* ERROR DISPLAY AND SUBMIT BUTTON */} {requestStatus.message != "" && @@ -115,7 +95,27 @@ export default function DeleteMember({action, situation, details}) { ) ))} {/* End of error or success display */} - + +
+ + {requestStatus.laoding ? ( + + ) : ( + + )} +
)