diff --git a/src/components/JobGroups/AddGroup.jsx b/src/components/JobGroups/AddGroup.jsx
index bd96fe0..c6f5379 100644
--- a/src/components/JobGroups/AddGroup.jsx
+++ b/src/components/JobGroups/AddGroup.jsx
@@ -88,7 +88,7 @@ export default function AddGroup({ action, situation, setUpdateList }) {
return (
-
+
Add Group
@@ -135,28 +135,6 @@ export default function AddGroup({ action, situation, setUpdateList }) {
/>
-
-
-
- Cancel
-
-
- {requestStatus.loading ? (
-
- ) : (
- addGroup()}
- type="button"
- className="w-[152px] h-[46px] flex justify-center items-center btn-gradient text-base rounded-full text-white"
- >
- Add Group
-
- )}
-
{/* ERROR DISPLAY AND SUBMIT BUTTON */}
{requestStatus.message != "" &&
@@ -177,6 +155,29 @@ export default function AddGroup({ action, situation, setUpdateList }) {
))}
{/* End of error or success display */}
+
+
+
+
+ Cancel
+
+
+ {requestStatus.loading ? (
+
+ ) : (
+ addGroup()}
+ type="button"
+ className="custom-btn btn-gradient text-white"
+ >
+ Add Group
+
+ )}
+
);
diff --git a/src/components/JobGroups/DeleteGroup.jsx b/src/components/JobGroups/DeleteGroup.jsx
index c07064b..8112b15 100644
--- a/src/components/JobGroups/DeleteGroup.jsx
+++ b/src/components/JobGroups/DeleteGroup.jsx
@@ -20,14 +20,14 @@ export default function DeleteGroup({action, situation, details}) {
action={action}
situation={situation}
>
-
-
-
+
+
+
Delete Group
'{details?.group_name}' group?
-
-
- Cancel
-
- {requestStatus.laoding ? (
-
- ) : (
- deleteGroup()}
- type="button"
- className="text-white primary-gradient text-18 tracking-wide px-4 py-3 rounded-full"
- >
- Confirm Delete
-
- )}
-
{/* ERROR DISPLAY AND SUBMIT BUTTON */}
{requestStatus.message != "" &&
@@ -116,6 +96,26 @@ export default function DeleteGroup({action, situation, details}) {
))}
{/* End of error or success display */}
+
+
+ Cancel
+
+ {requestStatus.laoding ? (
+
+ ) : (
+ deleteGroup()}
+ type="button"
+ className="custom-btn primary-gradient text-white"
+ >
+ Confirm Delete
+
+ )}
+
)
diff --git a/src/components/JobGroups/DeleteMember.jsx b/src/components/JobGroups/DeleteMember.jsx
index cff7288..f99ea25 100644
--- a/src/components/JobGroups/DeleteMember.jsx
+++ b/src/components/JobGroups/DeleteMember.jsx
@@ -20,7 +20,7 @@ export default function DeleteMember({action, situation, details}) {
action={action}
situation={situation}
>
-
+
Remove Member
@@ -76,26 +76,6 @@ export default function DeleteMember({action, situation, details}) {
Are you sure, you want to remove '{details?.firstname} {details.lastname}'
-
-
- Cancel
-
- {requestStatus.laoding ? (
-
- ) : (
- deleteMember()}
- type="button"
- className="text-white primary-gradient text-18 tracking-wide px-4 py-3 rounded-full"
- >
- Remove
-
- )}
-
{/* ERROR DISPLAY AND SUBMIT BUTTON */}
{requestStatus.message != "" &&
@@ -115,7 +95,27 @@ export default function DeleteMember({action, situation, details}) {
)
))}
{/* End of error or success display */}
-
+
+
+
+ Cancel
+
+ {requestStatus.laoding ? (
+
+ ) : (
+ deleteMember()}
+ type="button"
+ className="custom-btn primary-gradient text-white"
+ >
+ Remove
+
+ )}
+
)
diff --git a/src/components/Partials/Layout.jsx b/src/components/Partials/Layout.jsx
index 6dba967..1c08db1 100644
--- a/src/components/Partials/Layout.jsx
+++ b/src/components/Partials/Layout.jsx
@@ -67,7 +67,7 @@ export default function Layout({ children }) {
{logoutModal && (
-
+
Confirm
diff --git a/src/components/countdown/CustomTimer.jsx b/src/components/countdown/CustomTimer.jsx
index a8b394b..a0a5bf3 100644
--- a/src/components/countdown/CustomTimer.jsx
+++ b/src/components/countdown/CustomTimer.jsx
@@ -6,12 +6,14 @@ export default function CustomTimer({className='text-emerald-500'}) {
useEffect(()=>{
const timer = setInterval(()=>{
- setTime(prev => prev - 1)
+ if(time > 0 ){
+ setTime(prev => prev - 1)
+ }
},1000)
return ()=>{
clearInterval(timer)
}
- },[])
+ },[time])
let minutes = time == 0 ? 0 : Math.floor(time/60)
let seconds = time == 0 ? 0 :time - (minutes * 60)