From 215accbcaa989e43f43dfc5f400d5411013f4ef3 Mon Sep 17 00:00:00 2001 From: Bagasbanuna02 Date: Fri, 3 Jan 2025 14:22:10 +0800 Subject: [PATCH 1/3] fix: user Deskripsi: - penambahan modal untuk memberi redirect ke whatsapp --- src/app/zCoba/skeleton/page.tsx | 22 +- .../button/comp_button_selanjutnya.tsx | 15 +- .../katalog/portofolio/create/view.tsx | 126 +++++--- .../portofolio/ui/ui_detail_data_new.tsx | 281 ++++++++++------- src/app_modules/katalog/ui/profile_detail.tsx | 290 +++++++++++------- .../map/_component/detail_data.tsx | 45 ++- 6 files changed, 494 insertions(+), 285 deletions(-) diff --git a/src/app/zCoba/skeleton/page.tsx b/src/app/zCoba/skeleton/page.tsx index f16ec3cf..a5b62d10 100644 --- a/src/app/zCoba/skeleton/page.tsx +++ b/src/app/zCoba/skeleton/page.tsx @@ -5,7 +5,8 @@ import { UIGlobal_LayoutHeaderTamplate, UIGlobal_LayoutTamplate, } from "@/app_modules/_global/ui"; -import { Grid, Skeleton, Stack } from "@mantine/core"; +import { Button, Grid, Skeleton, Stack } from "@mantine/core"; +import Link from "next/link"; export default function Voting_ComponentSkeletonViewPuh() { return ( @@ -13,6 +14,25 @@ export default function Voting_ComponentSkeletonViewPuh() { } > + + diff --git a/src/app_modules/katalog/portofolio/component/button/comp_button_selanjutnya.tsx b/src/app_modules/katalog/portofolio/component/button/comp_button_selanjutnya.tsx index 6af70436..823c1f29 100644 --- a/src/app_modules/katalog/portofolio/component/button/comp_button_selanjutnya.tsx +++ b/src/app_modules/katalog/portofolio/component/button/comp_button_selanjutnya.tsx @@ -22,7 +22,7 @@ export function Portofolio_ComponentButtonSelanjutnya({ profileId: string; dataPortofolio: MODEL_PORTOFOLIO_OLD; dataMedsos: any; - imageId: string + imageId: string; }) { const router = useRouter(); const [loading, setLoading] = useState(false); @@ -36,11 +36,18 @@ export function Portofolio_ComponentButtonSelanjutnya({ deskripsi: dataPortofolio.deskripsi, }; + if (_.values(porto).includes("")) { + ComponentGlobal_NotifikasiPeringatan("Lengkapi Data"); + return; + } + + if (dataPortofolio.tlpn.length < 10) { + ComponentGlobal_NotifikasiPeringatan("Nomor telepon minimal 10 angka"); + return; + } + try { setLoading(true); - if (_.values(porto).includes("")) { - return ComponentGlobal_NotifikasiPeringatan("Lengkapi Data"); - } const res = await funCreatePortofolio({ profileId: profileId, data: dataPortofolio as any, diff --git a/src/app_modules/katalog/portofolio/create/view.tsx b/src/app_modules/katalog/portofolio/create/view.tsx index b8fd5489..1bfcaf71 100644 --- a/src/app_modules/katalog/portofolio/create/view.tsx +++ b/src/app_modules/katalog/portofolio/create/view.tsx @@ -30,6 +30,8 @@ import { funGlobal_UploadToStorage, } from "@/app_modules/_global/fun"; import { DIRECTORY_ID } from "@/app/lib"; +import { PhoneInput } from "react-international-phone"; +import "react-international-phone/style.css"; export default function CreatePortofolio({ bidangBisnis, @@ -69,12 +71,12 @@ export default function CreatePortofolio({ label: { color: MainColor.white, }, - input: { - backgroundColor: MainColor.white - }, - required: { - color: MainColor.red, - } + // input: { + // backgroundColor: MainColor.white, + // }, + // required: { + // color: MainColor.red, + // }, }} withAsterisk label="Nama Bisnis" @@ -88,17 +90,16 @@ export default function CreatePortofolio({ }} />