diff --git a/src/app_modules/colab/component/detail/list_partisipasi_user.tsx b/src/app_modules/colab/component/detail/list_partisipasi_user.tsx
index eab27c28..609d4f58 100644
--- a/src/app_modules/colab/component/detail/list_partisipasi_user.tsx
+++ b/src/app_modules/colab/component/detail/list_partisipasi_user.tsx
@@ -254,7 +254,7 @@ export default function ComponentColab_DetailListPartisipasiUser({
borderRight: `1px solid ${AccentColor.blue}`,
borderLeft: `1px solid ${AccentColor.blue}`,
borderRadius: "20px 20px 0px 0px",
- color: "white",
+ color: MainColor.white,
paddingBottom: "5%",
},
}}
@@ -262,16 +262,21 @@ export default function ComponentColab_DetailListPartisipasiUser({
-
+
-
+
>
);
}
diff --git a/src/app_modules/event/detail/draft/index.tsx b/src/app_modules/event/detail/draft/index.tsx
index a1249c92..a17357a2 100644
--- a/src/app_modules/event/detail/draft/index.tsx
+++ b/src/app_modules/event/detail/draft/index.tsx
@@ -19,6 +19,7 @@ import { Event_funDeleteById } from "../../fun/delete/fun_delete";
import { Event_funEditStatusById } from "../../fun/edit/fun_edit_status_by_id";
import { MODEL_EVENT } from "../../model/interface";
import { AccentColor, MainColor } from "@/app_modules/_global/color";
+import { clientLogger } from "@/util/clientLogger";
export default function Event_DetailDraft({
dataEvent,
@@ -68,12 +69,18 @@ function ButtonAction({
async function onDelete() {
const res = await Event_funDeleteById(eventId);
- if (res.status === 200) {
- router.back();
- ComponentGlobal_NotifikasiBerhasil(res.message, 2000);
+ try {
setLoadingDelete(true);
- } else {
- ComponentGlobal_NotifikasiGagal(res.message);
+ if (res.status === 200) {
+ router.back();
+ ComponentGlobal_NotifikasiBerhasil(res.message, 2000);
+ } else {
+ setLoadingDelete(false);
+ ComponentGlobal_NotifikasiGagal(res.message);
+ }
+ } catch (error) {
+ setLoadingDelete(false);
+ clientLogger.error("Error delete event", error);
}
}
@@ -158,7 +165,7 @@ function ButtonAction({
}
buttonKanan={