diff --git a/app/[locale]/(protected)/admin/add-experts/update/[id]/page.tsx b/app/[locale]/(protected)/admin/add-experts/update/[id]/page.tsx index de79e295..9a161fb5 100644 --- a/app/[locale]/(protected)/admin/add-experts/update/[id]/page.tsx +++ b/app/[locale]/(protected)/admin/add-experts/update/[id]/page.tsx @@ -160,6 +160,25 @@ export default function UpdateExpertForm() { initState(); }, [id]); + useEffect(() => { + if (!detail) return; + + form.reset({ + name: detail.fullname || "", + username: detail.username || "", + phoneNumber: detail.phoneNumber || "", + email: detail.email || "", + password: "", + skills: detail?.userProfilesAdditional?.userCompetency?.id + ? String(detail.userProfilesAdditional.userCompetency.id) + : "", + experiences: detail?.userProfilesAdditional?.userExperienceId + ? String(detail.userProfilesAdditional.userExperienceId) + : "", + company: detail?.userProfilesAdditional?.companyName || "", + }); + }, [detail]); + if (!detail) return
- {audio?.categoryName?.toUpperCase() ?? "GIAT PIMPINAN"} -
++ {audio?.categoryName?.toUpperCase() ?? "GIAT PIMPINAN"} +
+ +
+ {formatDateToIndonesian(new Date(audio?.createdAt))}{" "}
+ {audio?.timezone ? audio?.timezone : "WIB"} |{" "}
+
{audio?.title} diff --git a/components/landing-page/filter-all/document-filter-card.tsx b/components/landing-page/filter-all/document-filter-card.tsx index 69630cfc..b764a605 100644 --- a/components/landing-page/filter-all/document-filter-card.tsx +++ b/components/landing-page/filter-all/document-filter-card.tsx @@ -259,9 +259,18 @@ export default function FilterDocumentComponent(props: { {/* Konten bawah */}
+ {formatDateToIndonesian(new Date(text?.createdAt))}{" "}
+ {text?.timezone ? text?.timezone : "WIB"} |{" "}
+
- {image?.categoryName?.toUpperCase() ?? "Giat Pimpinan"} -
++ {image?.categoryName?.toUpperCase() ?? "Giat Pimpinan"} +
+
+ {formatDateToIndonesian(new Date(image?.createdAt))}{" "}
+ {image?.timezone ? image?.timezone : "WIB"}{" "}|{" "}
+
- {video?.categoryName?.toUpperCase() ?? "Giat Pimpinan"} -
++ {video?.categoryName?.toUpperCase() ?? "Giat Pimpinan"} +
+
+ {formatDateToIndonesian(new Date(video?.createdAt))}{" "}
+ {video?.timezone ? video?.timezone : "WIB"} |{" "}
+
{video?.title}
diff --git a/components/landing-page/navbar.tsx b/components/landing-page/navbar.tsx index 741f68ab..52f1c8f6 100644 --- a/components/landing-page/navbar.tsx +++ b/components/landing-page/navbar.tsx @@ -209,7 +209,7 @@ const Navbar = () => {