diff --git a/src/app_modules/event/_ui/konfirmasi.tsx b/src/app_modules/event/_ui/konfirmasi.tsx
index 2062d1b0..bc243cc1 100644
--- a/src/app_modules/event/_ui/konfirmasi.tsx
+++ b/src/app_modules/event/_ui/konfirmasi.tsx
@@ -20,6 +20,7 @@ import { Event_funJoinAndConfirmEvent } from "../fun/create/fun_join_and_confirm
import { gs_event_hotMenu } from "../global_state";
import { MODEL_EVENT } from "../model/interface";
import { Event_funJoinEvent } from "../fun/create/fun_join_event";
+import "moment/locale/id";
export default function Ui_Konfirmasi({
userLoginId,
@@ -88,7 +89,7 @@ export default function Ui_Konfirmasi({
);
}
- // Jika tanggal acara lewat
+ // Jika tanggal acara sudah lewat
if (moment(data?.tanggalSelesai).diff(moment(), "minute") < 0) {
return (
<>
@@ -97,6 +98,15 @@ export default function Ui_Konfirmasi({
);
}
+ // Jika join true
+ if (isJoin == true && moment(data?.tanggal).diff(moment(), "minute") > 0) {
+ return (
+ <>
+
+ >
+ );
+ }
+
// Jika belum join dan tanggal mulai acara belum lewat
if (isJoin == false && moment(data?.tanggal).diff(moment(), "minute") > 0) {
return (
@@ -125,8 +135,13 @@ export default function Ui_Konfirmasi({
);
}
- // Jika sudah join, belum konfirm dan acara sudah mulai
- if (isPresent && moment(data?.tanggal).diff(moment(), "minute") < 0) {
+ // Jika sudah join, sudah konfirmasi dan tanggal mulai acara sudah lewat
+ // if (isPresent && moment(data?.tanggal).diff(moment(), "minute") < 0)
+ if (
+ isPresent &&
+ isJoin &&
+ moment(data?.tanggal).diff(moment(), "minute") < 0
+ ) {
return ;
}
@@ -199,6 +214,52 @@ function SkeletonIsDataNull() {
);
}
+function UserJoinTrue({ title, tanggal }: { title: string; tanggal: Date }) {
+ const router = useRouter();
+ const [isLoading, setLoading] = useState(false);
+ const [hotMenu, setHotMenu] = useAtom(gs_event_hotMenu);
+
+ return (
+ <>
+
+
+
+
+
+ Terima kasih, Bapak/Ibu, Anda telah berhasil bergabung dalam
+ acara{" "}
+
+ {title}
+ {" "}
+ . Mohon ditunggu hingga tanggal{" "}
+
+ {moment(tanggal).format("DD-MM-YYYY")}
+ {" "}
+ untuk melakukan konfirmasi kehadiran melalui aplikasi HIPMI APP.
+
+
+
+
+
+
+
+ >
+ );
+}
+
function UserAllowToJoin({
title,
tanggal,