diff --git a/src/app/zCoba/test1/page.tsx b/src/app/zCoba/test1/page.tsx deleted file mode 100644 index 7f7cfd74..00000000 --- a/src/app/zCoba/test1/page.tsx +++ /dev/null @@ -1,54 +0,0 @@ -"use client"; -import { - gs_admin_ntf, - gs_realtimeData, - IRealtimeData, -} from "@/app/lib/global_state"; -import { Button, Stack } from "@mantine/core"; -import { useShallowEffect } from "@mantine/hooks"; -import { useAtom } from "jotai"; -import { WibuRealtime } from "wibu-pkg"; -import { v4 } from "uuid"; -import { useState } from "react"; -const angka = 10; -export default function Page() { - const [dataRealtime, setDataRealtime] = useAtom(gs_realtimeData); - const [adminNtf, setAdminNtf] = useAtom(gs_admin_ntf); - const [notif, setNotif] = useState(angka); - - useShallowEffect(() => { - if (adminNtf) { - setNotif((e) => e + 1); - } - }, [adminNtf]); - - async function onSend() { - const newData: IRealtimeData = { - appId: v4(), - status: "Publish", - userId: "user1", - pesan: "apa kabar", - title: "coba", - kategoriApp: "INVESTASI", - }; - - WibuRealtime.setData({ - type: "message", - pushNotificationTo: "USER", - dataMessage: newData, - }); - } - - return ( - - {notif} - - - ); -} diff --git a/src/app_modules/_global/ui/ui_drawer.tsx b/src/app_modules/_global/ui/ui_drawer.tsx index 9cc21141..b1f51ef3 100644 --- a/src/app_modules/_global/ui/ui_drawer.tsx +++ b/src/app_modules/_global/ui/ui_drawer.tsx @@ -11,7 +11,7 @@ import { import { IconX } from "@tabler/icons-react"; import { useRouter } from "next/navigation"; import { useState } from "react"; -import { AccentColor } from "../color/color_pallet"; +import { AccentColor, MainColor } from "../color/color_pallet"; import ComponentGlobal_Loader from "../component/loader"; interface MODEL_DRAWER { @@ -72,7 +72,7 @@ export default function UIGlobal_Drawer({ - + @@ -100,7 +100,7 @@ export default function UIGlobal_Drawer({ {e?.icon} - + {e?.name} diff --git a/src/app_modules/auth/login/view.tsx b/src/app_modules/auth/login/view.tsx index c536419b..c6abfbfc 100644 --- a/src/app_modules/auth/login/view.tsx +++ b/src/app_modules/auth/login/view.tsx @@ -56,15 +56,19 @@ export default function Login({ version }: { version: string }) { - + <Title order={3} c={MainColor.yellow} > WELCOME TO - HIPMI APPS + + HIPMI APPS +
- Nomor telepon + + Nomor telepon +
- + - - - - - - - {Array.from({ length: 4 }).map((_, i) => ( - - ))} - - - + + + - + + + {Array.from({ length: 4 }).map((_, i) => ( + + ))} + + + +
); } @@ -39,3 +39,28 @@ export default function Validasi_SkeletonView() {
*/} + +// import { Stack, Skeleton, Group } from "@mantine/core"; + +// export default function Validasi_SkeletonView() { +// return ( +// +// +// +// +// +// +// + +// +// {Array.from({ length: 4 }).map((_, i) => ( +// +// ))} +// + +// +// +// +// +// ); +// } diff --git a/src/app_modules/components/CustomSkeleton.tsx b/src/app_modules/components/CustomSkeleton.tsx new file mode 100644 index 00000000..e6da0679 --- /dev/null +++ b/src/app_modules/components/CustomSkeleton.tsx @@ -0,0 +1,35 @@ +import { Skeleton, SkeletonProps, createStyles } from '@mantine/core'; +import { AccentColor } from '../_global/color'; + +interface CustomSkeletonProps extends SkeletonProps { + isLoading?: boolean; + className?: string; +} + +const useStyles = createStyles((theme) => ({ + skeleton: { + '&::before': { + backgroundColor: "#1F5B9E", + }, + '&::after': { + backgroundColor: "#0F3055", + }, + }, +})); + +const CustomSkeleton: React.FC = ({ + isLoading = true, + className, + ...props +}) => { + const { classes, cx } = useStyles(); + return ( + + ); +}; + +export default CustomSkeleton; \ No newline at end of file diff --git a/src/app_modules/event/component/skeleton/comp_skeleton_beranda.tsx b/src/app_modules/event/component/skeleton/comp_skeleton_beranda.tsx index e45a9247..c5906c2f 100644 --- a/src/app_modules/event/component/skeleton/comp_skeleton_beranda.tsx +++ b/src/app_modules/event/component/skeleton/comp_skeleton_beranda.tsx @@ -1,5 +1,6 @@ import { AccentColor } from "@/app_modules/_global/color"; import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component"; +import CustomSkeleton from "@/app_modules/components/CustomSkeleton"; import { Grid, Group, Paper, Skeleton, Stack, Text } from "@mantine/core"; export default function Event_ComponentSkeletonBeranda() { @@ -10,16 +11,16 @@ export default function Event_ComponentSkeletonBeranda() { - + - + - - + + diff --git a/src/app_modules/katalog/portofolio/component/button_delete_new.tsx b/src/app_modules/katalog/portofolio/component/button_delete_new.tsx index 84d890d2..a1d5f399 100644 --- a/src/app_modules/katalog/portofolio/component/button_delete_new.tsx +++ b/src/app_modules/katalog/portofolio/component/button_delete_new.tsx @@ -8,6 +8,7 @@ import { useParams, useRouter } from "next/navigation"; import { useState } from "react"; import { apiDeletePortofolio, apiGetOnePortofolioById } from "../lib/api_portofolio"; import { IDetailPortofolioBisnis } from "../lib/type_portofolio"; +import { MainColor } from "@/app_modules/_global/color"; export default function ComponentPortofolio_ButtonDeleteNew() { const param = useParams<{ id: string }>() @@ -59,7 +60,7 @@ export default function ComponentPortofolio_ButtonDeleteNew() { {userLoginId === dataPorto?.authorId ? (