Merge pull request #217 from bipproduction/Nico/27Des2024
Nico/27 des2024
This commit is contained in:
@@ -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 (
|
|
||||||
<Stack p={"md"} align="center" justify="center" h={"80vh"}>
|
|
||||||
{notif}
|
|
||||||
<Button
|
|
||||||
onClick={() => {
|
|
||||||
onSend();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Dari test 1
|
|
||||||
</Button>
|
|
||||||
</Stack>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,10 @@
|
|||||||
export const MainColor = {
|
export const MainColor = {
|
||||||
black: "#202020",
|
black: "#202020",
|
||||||
darkblue: "#001D3D",
|
darkblue: "#001D3D",
|
||||||
yellow: "#FFC300",
|
yellow: "#E1B525",
|
||||||
|
white: "#D4D0D0",
|
||||||
|
red: "#C74E4E",
|
||||||
|
orange: "#E58958"
|
||||||
};
|
};
|
||||||
|
|
||||||
export const AccentColor = {
|
export const AccentColor = {
|
||||||
@@ -10,5 +13,7 @@ export const AccentColor = {
|
|||||||
blue: "#00447D",
|
blue: "#00447D",
|
||||||
softblue: "#007CBA",
|
softblue: "#007CBA",
|
||||||
skyblue: "#00BFFF",
|
skyblue: "#00BFFF",
|
||||||
yellow: "#FFD60A",
|
yellow: "#E1B525",
|
||||||
};
|
};
|
||||||
|
//yellow: "#FFC300"
|
||||||
|
//yellow: "#FFD60A"
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export default function ComponentGlobal_BoxInformation({
|
|||||||
>
|
>
|
||||||
* Report
|
* Report
|
||||||
</Text>
|
</Text>
|
||||||
<Text fz={fonsize ? fonsize : 12} c={"white"}>
|
<Text fz={fonsize ? fonsize : 12} c={MainColor.white}>
|
||||||
{informasi}
|
{informasi}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
@@ -39,7 +39,7 @@ export default function ComponentGlobal_BoxInformation({
|
|||||||
<Group>
|
<Group>
|
||||||
<Text fz={fonsize ? fonsize : 12} c={"red"} fw={"bold"}>
|
<Text fz={fonsize ? fonsize : 12} c={"red"} fw={"bold"}>
|
||||||
*{" "}
|
*{" "}
|
||||||
<Text span inherit c={"white"} fw={"normal"}>
|
<Text span inherit c={MainColor.white} fw={"normal"}>
|
||||||
{informasi}
|
{informasi}
|
||||||
</Text>
|
</Text>
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default function ComponentGlobal_CreateButton({
|
|||||||
)} */}
|
)} */}
|
||||||
|
|
||||||
{/* GA PAKE LOADING */}
|
{/* GA PAKE LOADING */}
|
||||||
<IconPencilPlus color="white" />
|
<IconPencilPlus color={MainColor.white} />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import ComponentGlobal_Loader from "./loader";
|
|||||||
import { funGlobal_CheckProfile } from "../fun/get";
|
import { funGlobal_CheckProfile } from "../fun/get";
|
||||||
import { RouterProfile } from "@/app/lib/router_hipmi/router_katalog";
|
import { RouterProfile } from "@/app/lib/router_hipmi/router_katalog";
|
||||||
import { ComponentGlobal_NotifikasiPeringatan } from "../notif_global";
|
import { ComponentGlobal_NotifikasiPeringatan } from "../notif_global";
|
||||||
|
import { MainColor } from "../color";
|
||||||
|
|
||||||
type IFontSize = "xs" | "sm" | "md" | "lg" | "xl";
|
type IFontSize = "xs" | "sm" | "md" | "lg" | "xl";
|
||||||
export function ComponentGlobal_AvatarAndUsername({
|
export function ComponentGlobal_AvatarAndUsername({
|
||||||
@@ -60,6 +61,7 @@ export function ComponentGlobal_AvatarAndUsername({
|
|||||||
<Grid.Col span={"auto"} style={{ minHeight: 50 }}>
|
<Grid.Col span={"auto"} style={{ minHeight: 50 }}>
|
||||||
<Stack justify="center" h={30}>
|
<Stack justify="center" h={30}>
|
||||||
<Text
|
<Text
|
||||||
|
c={MainColor.white}
|
||||||
fw={"bold"}
|
fw={"bold"}
|
||||||
fz={fontSize ? fontSize : "sm"}
|
fz={fontSize ? fontSize : "sm"}
|
||||||
lineClamp={1}
|
lineClamp={1}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component";
|
import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component";
|
||||||
import { Box } from "@mantine/core";
|
import { Box } from "@mantine/core";
|
||||||
|
import { MainColor } from "../color";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -28,6 +29,7 @@ export function ComponentGlobal_BoxUploadImage({
|
|||||||
height: "100%",
|
height: "100%",
|
||||||
borderStyle: "dashed",
|
borderStyle: "dashed",
|
||||||
borderRadius: "5px",
|
borderRadius: "5px",
|
||||||
|
borderColor: MainColor.white,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
import { IconX } from "@tabler/icons-react";
|
import { IconX } from "@tabler/icons-react";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { AccentColor } from "../color/color_pallet";
|
import { AccentColor, MainColor } from "../color/color_pallet";
|
||||||
import ComponentGlobal_Loader from "../component/loader";
|
import ComponentGlobal_Loader from "../component/loader";
|
||||||
|
|
||||||
interface MODEL_DRAWER {
|
interface MODEL_DRAWER {
|
||||||
@@ -72,7 +72,7 @@ export default function UIGlobal_Drawer({
|
|||||||
<Stack spacing={"xs"}>
|
<Stack spacing={"xs"}>
|
||||||
<Group position="right">
|
<Group position="right">
|
||||||
<ActionIcon onClick={close} variant="transparent">
|
<ActionIcon onClick={close} variant="transparent">
|
||||||
<IconX color="white" />
|
<IconX color={MainColor.white} />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Group>
|
</Group>
|
||||||
<SimpleGrid cols={component.length < 4 ? component.length : 4}>
|
<SimpleGrid cols={component.length < 4 ? component.length : 4}>
|
||||||
@@ -100,7 +100,7 @@ export default function UIGlobal_Drawer({
|
|||||||
{e?.icon}
|
{e?.icon}
|
||||||
|
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
<Text fz={"sm"} align="center" color="white">
|
<Text fz={"sm"} align="center" color={MainColor.white}>
|
||||||
{e?.name}
|
{e?.name}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ export default function UIGlobal_LayoutHeaderTamplate({
|
|||||||
customButtonLeft
|
customButtonLeft
|
||||||
) : (
|
) : (
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
c={"white"}
|
c={MainColor.white}
|
||||||
variant="transparent"
|
variant="transparent"
|
||||||
radius={"xl"}
|
radius={"xl"}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export default function UIGlobal_Modal({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Title order={6} color="white" align="center">
|
<Title order={6} color={MainColor.white} align="center">
|
||||||
{title}
|
{title}
|
||||||
</Title>
|
</Title>
|
||||||
<Group position="center">
|
<Group position="center">
|
||||||
|
|||||||
@@ -2,16 +2,17 @@
|
|||||||
|
|
||||||
import { Loader, Stack, ThemeIcon } from "@mantine/core";
|
import { Loader, Stack, ThemeIcon } from "@mantine/core";
|
||||||
import UIGlobal_LayoutDefault from "./ui_layout_default";
|
import UIGlobal_LayoutDefault from "./ui_layout_default";
|
||||||
|
import { MainColor } from "../color";
|
||||||
|
|
||||||
export default function UIGlobal_SplashScreen({ icon }: { icon: any }) {
|
export default function UIGlobal_SplashScreen({ icon }: { icon: any }) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<UIGlobal_LayoutDefault>
|
<UIGlobal_LayoutDefault>
|
||||||
<Stack h={"90vh"} align="center" justify="center" spacing={"xl"}>
|
<Stack h={"90vh"} align="center" justify="center" spacing={"xl"}>
|
||||||
<ThemeIcon variant="transparent" size={300} c="white">
|
<ThemeIcon variant="transparent" size={300} c={MainColor.white}>
|
||||||
{icon}
|
{icon}
|
||||||
</ThemeIcon>
|
</ThemeIcon>
|
||||||
<Loader variant="dots" color="white" />
|
<Loader variant="dots" color={MainColor.white} />
|
||||||
</Stack>
|
</Stack>
|
||||||
</UIGlobal_LayoutDefault>
|
</UIGlobal_LayoutDefault>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -56,18 +56,22 @@ export default function Login({ version }: { version: string }) {
|
|||||||
<UIGlobal_LayoutDefault>
|
<UIGlobal_LayoutDefault>
|
||||||
<Stack align="center" justify="center" h={"100vh"} spacing={100}>
|
<Stack align="center" justify="center" h={"100vh"} spacing={100}>
|
||||||
<Stack align="center" spacing={0}>
|
<Stack align="center" spacing={0}>
|
||||||
<Title order={3} c={MainColor.yellow}>
|
<Title order={3} c={MainColor.yellow} >
|
||||||
WELCOME TO
|
WELCOME TO
|
||||||
</Title>
|
</Title>
|
||||||
<Title c={MainColor.yellow}>HIPMI APPS</Title>
|
<Title c={MainColor.yellow} >
|
||||||
|
HIPMI APPS
|
||||||
|
</Title>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Stack w={300}>
|
<Stack w={300}>
|
||||||
<Center>
|
<Center>
|
||||||
<Text c={"white"}>Nomor telepon</Text>
|
<Text c={MainColor.white} >
|
||||||
|
Nomor telepon
|
||||||
|
</Text>
|
||||||
</Center>
|
</Center>
|
||||||
<PhoneInput
|
<PhoneInput
|
||||||
inputStyle={{ width: "100%" }}
|
inputStyle={{ width: "100%" }}
|
||||||
defaultCountry="id"
|
defaultCountry="id"
|
||||||
onChange={(val) => {
|
onChange={(val) => {
|
||||||
setPhone(val);
|
setPhone(val);
|
||||||
@@ -99,7 +103,7 @@ export default function Login({ version }: { version: string }) {
|
|||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Box pos={"fixed"} bottom={10}>
|
<Box pos={"fixed"} bottom={10}>
|
||||||
<Text fw={"bold"} c={"white"} fs={"italic"} fz={"xs"}>
|
<Text fw={"bold"} c={MainColor.white} fs={"italic"} fz={"xs"}>
|
||||||
v {version}
|
v {version}
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import { useRouter } from "next/navigation";
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { auth_Logout } from "../fun/fun_logout";
|
import { auth_Logout } from "../fun/fun_logout";
|
||||||
import { RouterAuth } from "@/app/lib/router_hipmi/router_auth";
|
import { RouterAuth } from "@/app/lib/router_hipmi/router_auth";
|
||||||
|
import { MainColor } from "@/app_modules/_global/color";
|
||||||
|
|
||||||
export default function Component_ButtonLogout({userId}: {userId: string}) {
|
export default function Component_ButtonLogout({userId}: {userId: string}) {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -70,9 +71,9 @@ export default function Component_ButtonLogout({userId}: {userId: string}) {
|
|||||||
setOpened(true);
|
setOpened(true);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconLogout color="red" />
|
<IconLogout color={MainColor.red} />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
<Text fw={"bold"} align="center" color="red">
|
<Text fw={"bold"} align="center" color={MainColor.red}>
|
||||||
Keluar
|
Keluar
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -96,10 +96,10 @@ export default function Register() {
|
|||||||
REGISTRASI
|
REGISTRASI
|
||||||
</Title>
|
</Title>
|
||||||
|
|
||||||
<IconUserCircle size={100} color="white" />
|
<IconUserCircle size={100} color={MainColor.white} />
|
||||||
|
|
||||||
<Stack spacing={"sm"} w={300}>
|
<Stack spacing={"sm"} w={300}>
|
||||||
<Text align="center" c={"white"}>
|
<Text align="center" c={MainColor.white}>
|
||||||
Anda akan terdaftar dengan nomor berikut{" "}
|
Anda akan terdaftar dengan nomor berikut{" "}
|
||||||
<Text inherit span fw={"bold"}>
|
<Text inherit span fw={"bold"}>
|
||||||
+{nomor}
|
+{nomor}
|
||||||
|
|||||||
@@ -1,9 +1,28 @@
|
|||||||
import { Stack, Skeleton, Group } from "@mantine/core";
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
|
import { Group, Skeleton, Stack } from "@mantine/core";
|
||||||
|
|
||||||
export default function Validasi_SkeletonView() {
|
export default function Validasi_SkeletonView() {
|
||||||
return (
|
return (
|
||||||
<>
|
<Stack align="center" justify="center" h={"100vh"} spacing={50}>
|
||||||
<Stack align="center" justify="center" h={"100vh"} spacing={50}>
|
<CustomSkeleton h={30} w={250} radius={"xl"} />
|
||||||
|
<Stack spacing={"md"} align="center">
|
||||||
|
<Stack mb={15}>
|
||||||
|
<CustomSkeleton h={20} w={250} radius={"xl"} />
|
||||||
|
<CustomSkeleton h={20} w={250} radius={"xl"} />
|
||||||
|
</Stack>
|
||||||
|
|
||||||
|
<Group mb={10}>
|
||||||
|
{Array.from({ length: 4 }).map((_, i) => (
|
||||||
|
<CustomSkeleton key={i} h={50} w={50} radius={"sm"} />
|
||||||
|
))}
|
||||||
|
</Group>
|
||||||
|
<CustomSkeleton h={20} w={250} radius={"xl"} />
|
||||||
|
</Stack>
|
||||||
|
<CustomSkeleton h={50} w={250} radius={"sm"} />
|
||||||
|
</Stack>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
{/* <Stack align="center" justify="center" h={"100vh"} spacing={50}>
|
||||||
<Skeleton h={30} w={250} radius={"xl"} />
|
<Skeleton h={30} w={250} radius={"xl"} />
|
||||||
<Stack>
|
<Stack>
|
||||||
<Skeleton h={20} w={250} radius={"xl"} />
|
<Skeleton h={20} w={250} radius={"xl"} />
|
||||||
@@ -19,7 +38,29 @@ export default function Validasi_SkeletonView() {
|
|||||||
<Skeleton h={20} w={250} radius={"xl"} />
|
<Skeleton h={20} w={250} radius={"xl"} />
|
||||||
|
|
||||||
<Skeleton h={50} w={250} radius={"sm"} />
|
<Skeleton h={50} w={250} radius={"sm"} />
|
||||||
</Stack>
|
</Stack> */}
|
||||||
</>
|
|
||||||
);
|
// import { Stack, Skeleton, Group } from "@mantine/core";
|
||||||
}
|
|
||||||
|
// export default function Validasi_SkeletonView() {
|
||||||
|
// return (
|
||||||
|
// <Stack align="center" justify="center" h={"100vh"} spacing={50}>
|
||||||
|
// <Skeleton h={30} w={250} radius={"xl"} />
|
||||||
|
// <Stack spacing={"md"} align="center">
|
||||||
|
// <Stack mb={15}>
|
||||||
|
// <Skeleton h={20} w={250} radius={"xl"} />
|
||||||
|
// <Skeleton h={20} w={250} radius={"xl"} />
|
||||||
|
// </Stack>
|
||||||
|
|
||||||
|
// <Group mb={10}>
|
||||||
|
// {Array.from({ length: 4 }).map((_, i) => (
|
||||||
|
// <Skeleton key={i} h={50} w={50} radius={"sm"} />
|
||||||
|
// ))}
|
||||||
|
// </Group>
|
||||||
|
|
||||||
|
// <Skeleton h={20} w={250} radius={"xl"} />
|
||||||
|
// </Stack>
|
||||||
|
// <Skeleton h={50} w={250} radius={"sm"} />
|
||||||
|
// </Stack>
|
||||||
|
// );
|
||||||
|
// }
|
||||||
|
|||||||
@@ -197,8 +197,8 @@ export default function Validasi() {
|
|||||||
|
|
||||||
<Stack spacing={"md"} align="center">
|
<Stack spacing={"md"} align="center">
|
||||||
<Stack spacing={0} align="center">
|
<Stack spacing={0} align="center">
|
||||||
<Text c={"white"}>Masukan 4 digit kode otp</Text>
|
<Text c={MainColor.white}>Masukan 4 digit kode otp</Text>
|
||||||
<Text c={"white"}>
|
<Text c={MainColor.white}>
|
||||||
Yang dikirim ke{" "}
|
Yang dikirim ke{" "}
|
||||||
<Text span inherit fw={"bold"}>
|
<Text span inherit fw={"bold"}>
|
||||||
{" "}
|
{" "}
|
||||||
@@ -207,12 +207,14 @@ export default function Validasi() {
|
|||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Center>
|
<Center>
|
||||||
<PinInput
|
<PinInput
|
||||||
|
|
||||||
size="xl"
|
size="xl"
|
||||||
type={"number"}
|
type={"number"}
|
||||||
ref={focusTrapRef}
|
ref={focusTrapRef}
|
||||||
spacing={"md"}
|
spacing={"md"}
|
||||||
mt={"md"}
|
mt={"md"}
|
||||||
|
styles={{ input: { backgroundColor: MainColor.white } }}
|
||||||
onChange={(val) => {
|
onChange={(val) => {
|
||||||
setInputOtp(val);
|
setInputOtp(val);
|
||||||
}}
|
}}
|
||||||
@@ -220,7 +222,7 @@ export default function Validasi() {
|
|||||||
</Center>
|
</Center>
|
||||||
|
|
||||||
<Stack h={"5vh"} align="center" justify="center">
|
<Stack h={"5vh"} align="center" justify="center">
|
||||||
<Text fs="italic" c={"white"}>
|
<Text fs="italic" c={MainColor.white}>
|
||||||
Tidak menerima kode ?{" "}
|
Tidak menerima kode ?{" "}
|
||||||
{counter > 0 ? (
|
{counter > 0 ? (
|
||||||
<Text fw={"bold"} inherit span>
|
<Text fw={"bold"} inherit span>
|
||||||
|
|||||||
35
src/app_modules/components/CustomSkeleton.tsx
Normal file
35
src/app_modules/components/CustomSkeleton.tsx
Normal file
@@ -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<CustomSkeletonProps> = ({
|
||||||
|
isLoading = true,
|
||||||
|
className,
|
||||||
|
...props
|
||||||
|
}) => {
|
||||||
|
const { classes, cx } = useStyles();
|
||||||
|
return (
|
||||||
|
<Skeleton
|
||||||
|
className={cx(classes.skeleton, className)}
|
||||||
|
visible={isLoading}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default CustomSkeleton;
|
||||||
@@ -50,7 +50,7 @@ export default function MainCrowd() {
|
|||||||
border: `2px solid ${AccentColor.blue}`,
|
border: `2px solid ${AccentColor.blue}`,
|
||||||
borderRadius: "10px",
|
borderRadius: "10px",
|
||||||
backgroundColor: MainColor.darkblue,
|
backgroundColor: MainColor.darkblue,
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
// color: "gray",
|
// color: "gray",
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -95,7 +95,7 @@ export default function MainCrowd() {
|
|||||||
border: `2px solid ${AccentColor.blue}`,
|
border: `2px solid ${AccentColor.blue}`,
|
||||||
borderRadius: "10px",
|
borderRadius: "10px",
|
||||||
backgroundColor: MainColor.darkblue,
|
backgroundColor: MainColor.darkblue,
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setLoadingDon(true);
|
setLoadingDon(true);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { AccentColor } from "@/app_modules/_global/color/color_pallet";
|
import { AccentColor, MainColor } from "@/app_modules/_global/color/color_pallet";
|
||||||
import {
|
import {
|
||||||
ComponentGlobal_CardLoadingOverlay,
|
ComponentGlobal_CardLoadingOverlay,
|
||||||
ComponentGlobal_CardStyles,
|
ComponentGlobal_CardStyles,
|
||||||
@@ -33,17 +33,17 @@ export default function ComponentEvent_BoxListStatus({
|
|||||||
>
|
>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Group w={"100%"} position="apart" grow>
|
<Group w={"100%"} position="apart" grow>
|
||||||
<Title order={5} lineClamp={1}>
|
<Title color={MainColor.white} order={5} lineClamp={1}>
|
||||||
{data.title}
|
{data.title}
|
||||||
</Title>
|
</Title>
|
||||||
<Text align="right" fz={"sm"} lineClamp={1}>
|
<Text c={MainColor.white} align="right" fz={"sm"} lineClamp={1}>
|
||||||
{new Intl.DateTimeFormat("id-ID", {
|
{new Intl.DateTimeFormat("id-ID", {
|
||||||
dateStyle: "medium",
|
dateStyle: "medium",
|
||||||
}).format(data.tanggal)}
|
}).format(data.tanggal)}
|
||||||
</Text>
|
</Text>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Text fz={"sm"} lineClamp={2}>
|
<Text c={MainColor.white} fz={"sm"} lineClamp={2}>
|
||||||
{data.deskripsi}
|
{data.deskripsi}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { RouterEvent } from "@/app/lib/router_hipmi/router_event";
|
import { RouterEvent } from "@/app/lib/router_hipmi/router_event";
|
||||||
|
import { MainColor } from "@/app_modules/_global/color";
|
||||||
import {
|
import {
|
||||||
ComponentGlobal_AvatarAndUsername,
|
ComponentGlobal_AvatarAndUsername,
|
||||||
ComponentGlobal_CardLoadingOverlay,
|
ComponentGlobal_CardLoadingOverlay,
|
||||||
@@ -31,7 +32,7 @@ export function ComponentEvent_CardBeranda({ data }: { data: any }) {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Group w={"100%"} position="apart" grow>
|
<Group w={"100%"} position="apart" grow>
|
||||||
<Title order={5} lineClamp={1}>
|
<Title c={MainColor.white} order={5} lineClamp={1}>
|
||||||
{data.title}
|
{data.title}
|
||||||
</Title>
|
</Title>
|
||||||
{/* <Text align="right" fz={"sm"} lineClamp={1}>
|
{/* <Text align="right" fz={"sm"} lineClamp={1}>
|
||||||
@@ -41,7 +42,7 @@ export function ComponentEvent_CardBeranda({ data }: { data: any }) {
|
|||||||
</Text> */}
|
</Text> */}
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Text fz={"sm"} lineClamp={2}>
|
<Text c={MainColor.white} fz={"sm"} lineClamp={2}>
|
||||||
{data.deskripsi}
|
{data.deskripsi}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component";
|
import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component";
|
||||||
import { Grid, Stack, Text, Title } from "@mantine/core";
|
import { Grid, Stack, Text, Title } from "@mantine/core";
|
||||||
import { MODEL_EVENT } from "../../model/interface";
|
import { MODEL_EVENT } from "../../model/interface";
|
||||||
|
import { MainColor } from "@/app_modules/_global/color";
|
||||||
|
|
||||||
export default function ComponentEvent_DetailData({
|
export default function ComponentEvent_DetailData({
|
||||||
data,
|
data,
|
||||||
@@ -13,42 +14,42 @@ export default function ComponentEvent_DetailData({
|
|||||||
<>
|
<>
|
||||||
<ComponentGlobal_CardStyles marginBottom={"16px"}>
|
<ComponentGlobal_CardStyles marginBottom={"16px"}>
|
||||||
<Stack px={"sm"} spacing={"xl"}>
|
<Stack px={"sm"} spacing={"xl"}>
|
||||||
<Title lineClamp={2} align="center" w={"100%"} order={4}>
|
<Title color={MainColor.white} lineClamp={2} align="center" w={"100%"} order={4}>
|
||||||
{data ? data?.title : null}
|
{data ? data?.title : null}
|
||||||
</Title>
|
</Title>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={4}>
|
<Grid.Col span={4}>
|
||||||
<Text fw={"bold"}>Lokasi</Text>
|
<Text c={MainColor.white} fw={"bold"}>Lokasi</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
<Grid.Col span={1}>:</Grid.Col>
|
||||||
<Grid.Col span={"auto"}>
|
<Grid.Col span={"auto"}>
|
||||||
<Text>{data ? data?.lokasi : null}</Text>
|
<Text c={MainColor.white}>{data ? data?.lokasi : null}</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={4}>
|
<Grid.Col span={4}>
|
||||||
<Text fw={"bold"}>Tipe Acara</Text>
|
<Text c={MainColor.white} fw={"bold"}>Tipe Acara</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
<Grid.Col span={1}>:</Grid.Col>
|
||||||
<Grid.Col span={"auto"}>
|
<Grid.Col span={"auto"}>
|
||||||
<Text>{data ? data.EventMaster_TipeAcara?.name : null}</Text>
|
<Text c={MainColor.white}>{data ? data.EventMaster_TipeAcara?.name : null}</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Stack spacing={"xs"}>
|
<Stack spacing={"xs"}>
|
||||||
<Text fw={"bold"}>Tanggal & Waktu</Text>
|
<Text c={MainColor.white} fw={"bold"}>Tanggal & Waktu</Text>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={4}>
|
<Grid.Col span={4}>
|
||||||
<Text fw={"bold"}>Mulai</Text>
|
<Text c={MainColor.white} fw={"bold"}>Mulai</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
<Grid.Col span={1}>:</Grid.Col>
|
||||||
<Grid.Col span={"auto"}>
|
<Grid.Col span={"auto"}>
|
||||||
<Text>
|
<Text c={MainColor.white}>
|
||||||
{" "}
|
{" "}
|
||||||
{new Intl.DateTimeFormat("id-ID", {
|
{new Intl.DateTimeFormat("id-ID", {
|
||||||
dateStyle: "full",
|
dateStyle: "full",
|
||||||
}).format(data?.tanggal)}
|
}).format(data?.tanggal)}
|
||||||
,{" "}
|
,{" "}
|
||||||
<Text span inherit>
|
<Text span inherit c={MainColor.white}>
|
||||||
{new Intl.DateTimeFormat("id-ID", {
|
{new Intl.DateTimeFormat("id-ID", {
|
||||||
timeStyle: "short",
|
timeStyle: "short",
|
||||||
}).format(data?.tanggal)}
|
}).format(data?.tanggal)}
|
||||||
@@ -58,17 +59,17 @@ export default function ComponentEvent_DetailData({
|
|||||||
</Grid>
|
</Grid>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={4}>
|
<Grid.Col span={4}>
|
||||||
<Text fw={"bold"}>Selesai</Text>
|
<Text c={MainColor.white} fw={"bold"}>Selesai</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
<Grid.Col span={1}>:</Grid.Col>
|
||||||
<Grid.Col span={"auto"}>
|
<Grid.Col span={"auto"}>
|
||||||
<Text>
|
<Text c={MainColor.white}>
|
||||||
{" "}
|
{" "}
|
||||||
{new Intl.DateTimeFormat("id-ID", {
|
{new Intl.DateTimeFormat("id-ID", {
|
||||||
dateStyle: "full",
|
dateStyle: "full",
|
||||||
}).format(data?.tanggalSelesai)}
|
}).format(data?.tanggalSelesai)}
|
||||||
,{" "}
|
,{" "}
|
||||||
<Text span inherit>
|
<Text span inherit c={MainColor.white}>
|
||||||
{new Intl.DateTimeFormat("id-ID", {
|
{new Intl.DateTimeFormat("id-ID", {
|
||||||
timeStyle: "short",
|
timeStyle: "short",
|
||||||
}).format(data?.tanggalSelesai)}
|
}).format(data?.tanggalSelesai)}
|
||||||
@@ -79,8 +80,8 @@ export default function ComponentEvent_DetailData({
|
|||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Stack spacing={2}>
|
<Stack spacing={2}>
|
||||||
<Text fw={"bold"}>Deskripsi</Text>
|
<Text c={MainColor.white} fw={"bold"}>Deskripsi</Text>
|
||||||
<Text>{data ? data?.deskripsi : null}</Text>
|
<Text c={MainColor.white}>{data ? data?.deskripsi : null}</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</ComponentGlobal_CardStyles>
|
</ComponentGlobal_CardStyles>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import { API_RouteEvent } from "@/app/lib/api_user_router/route_api_event";
|
|||||||
import { Event_ComponentSkeletonDetail } from "../skeleton/comp_skeleton_detail";
|
import { Event_ComponentSkeletonDetail } from "../skeleton/comp_skeleton_detail";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import "moment/locale/id";
|
import "moment/locale/id";
|
||||||
|
import { MainColor } from "@/app_modules/_global/color";
|
||||||
|
|
||||||
export default function ComponentEvent_DetailMainData({
|
export default function ComponentEvent_DetailMainData({
|
||||||
eventId,
|
eventId,
|
||||||
@@ -44,37 +45,37 @@ export default function ComponentEvent_DetailMainData({
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<Stack spacing={"xl"}>
|
<Stack spacing={"xl"}>
|
||||||
<Title align="center" order={4}>
|
<Title color={MainColor.white} align="center" order={4}>
|
||||||
{data ? data.title : null}
|
{data ? data.title : null}
|
||||||
</Title>
|
</Title>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={4}>
|
<Grid.Col span={4}>
|
||||||
<Text fw={"bold"}>Lokasi</Text>
|
<Text c={MainColor.white} fw={"bold"}>Lokasi</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
<Grid.Col span={1}>:</Grid.Col>
|
||||||
<Grid.Col span={"auto"}>
|
<Grid.Col span={"auto"}>
|
||||||
<Text>{data ? data.lokasi : null}</Text>
|
<Text c={MainColor.white}>{data ? data.lokasi : null}</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={4}>
|
<Grid.Col span={4}>
|
||||||
<Text fw={"bold"}>Tipe Acara</Text>
|
<Text c={MainColor.white} fw={"bold"}>Tipe Acara</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
<Grid.Col span={1}>:</Grid.Col>
|
||||||
<Grid.Col span={"auto"}>
|
<Grid.Col span={"auto"}>
|
||||||
<Text>{data ? data.EventMaster_TipeAcara.name : null}</Text>
|
<Text c={MainColor.white}>{data ? data.EventMaster_TipeAcara.name : null}</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Stack spacing={"xs"}>
|
<Stack spacing={"xs"}>
|
||||||
<Text fw={"bold"}>Tanggal & Waktu</Text>
|
<Text c={MainColor.white} fw={"bold"}>Tanggal & Waktu</Text>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={4}>
|
<Grid.Col span={4}>
|
||||||
<Text fw={"bold"}>Mulai</Text>
|
<Text c={MainColor.white} fw={"bold"}>Mulai</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
<Grid.Col span={1}>:</Grid.Col>
|
||||||
<Grid.Col span={"auto"}>
|
<Grid.Col span={"auto"}>
|
||||||
<Text>
|
<Text c={MainColor.white}>
|
||||||
{moment(
|
{moment(
|
||||||
data.tanggal?.toLocaleString("id-ID", {
|
data.tanggal?.toLocaleString("id-ID", {
|
||||||
dateStyle: "full",
|
dateStyle: "full",
|
||||||
@@ -85,11 +86,11 @@ export default function ComponentEvent_DetailMainData({
|
|||||||
</Grid>
|
</Grid>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={4}>
|
<Grid.Col span={4}>
|
||||||
<Text fw={"bold"}>Selesai</Text>
|
<Text c={MainColor.white} fw={"bold"}>Selesai</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
<Grid.Col span={1}>:</Grid.Col>
|
||||||
<Grid.Col span={"auto"}>
|
<Grid.Col span={"auto"}>
|
||||||
<Text>
|
<Text c={MainColor.white}>
|
||||||
{moment(
|
{moment(
|
||||||
data.tanggalSelesai?.toLocaleString("id-ID", {
|
data.tanggalSelesai?.toLocaleString("id-ID", {
|
||||||
dateStyle: "full",
|
dateStyle: "full",
|
||||||
@@ -101,8 +102,8 @@ export default function ComponentEvent_DetailMainData({
|
|||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Stack spacing={2}>
|
<Stack spacing={2}>
|
||||||
<Text fw={"bold"}>Deskripsi</Text>
|
<Text c={MainColor.white} fw={"bold"}>Deskripsi</Text>
|
||||||
<Text>{data ? data?.deskripsi : null}</Text>
|
<Text c={MainColor.white}>{data ? data?.deskripsi : null}</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ import { API_RouteEvent } from "@/app/lib/api_user_router/route_api_event";
|
|||||||
import Event_ComponentSkeletonListPeserta from "../skeleton/comp_skeleton_list_peserta";
|
import Event_ComponentSkeletonListPeserta from "../skeleton/comp_skeleton_list_peserta";
|
||||||
import { ScrollOnly } from "next-scroll-loader";
|
import { ScrollOnly } from "next-scroll-loader";
|
||||||
import { event_newGetListPesertaById } from "../../fun";
|
import { event_newGetListPesertaById } from "../../fun";
|
||||||
|
import { MainColor } from "@/app_modules/_global/color";
|
||||||
|
|
||||||
export default function ComponentEvent_ListPeserta({
|
export default function ComponentEvent_ListPeserta({
|
||||||
total,
|
total,
|
||||||
@@ -74,12 +75,12 @@ export default function ComponentEvent_ListPeserta({
|
|||||||
<ComponentGlobal_CardStyles>
|
<ComponentGlobal_CardStyles>
|
||||||
<Stack spacing={"md"} px={"sm"}>
|
<Stack spacing={"md"} px={"sm"}>
|
||||||
<Center>
|
<Center>
|
||||||
<Title order={5}>Daftar Peserta ({total})</Title>
|
<Title color={MainColor.white} order={5}>Daftar Peserta ({total})</Title>
|
||||||
</Center>
|
</Center>
|
||||||
|
|
||||||
{_.isEmpty(data) ? (
|
{_.isEmpty(data) ? (
|
||||||
<Center>
|
<Center>
|
||||||
<Text fz={"xs"} fw={"bold"}>
|
<Text c={MainColor.white} fz={"xs"} fw={"bold"}>
|
||||||
- Tidak ada peserta -
|
- Tidak ada peserta -
|
||||||
</Text>
|
</Text>
|
||||||
</Center>
|
</Center>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { AccentColor } from "@/app_modules/_global/color";
|
import { AccentColor } from "@/app_modules/_global/color";
|
||||||
import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component";
|
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";
|
import { Grid, Group, Paper, Skeleton, Stack, Text } from "@mantine/core";
|
||||||
|
|
||||||
export default function Event_ComponentSkeletonBeranda() {
|
export default function Event_ComponentSkeletonBeranda() {
|
||||||
@@ -10,16 +11,16 @@ export default function Event_ComponentSkeletonBeranda() {
|
|||||||
<Stack>
|
<Stack>
|
||||||
<Grid align="center">
|
<Grid align="center">
|
||||||
<Grid.Col span={"content"}>
|
<Grid.Col span={"content"}>
|
||||||
<Skeleton radius={"100%"} h={50} w={50} />
|
<CustomSkeleton radius={"100%"} h={50} w={50} />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={"auto"}>
|
<Grid.Col span={"auto"}>
|
||||||
<Skeleton h={20} w={"50%"} />
|
<CustomSkeleton h={20} w={"50%"} />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Stack>
|
<Stack>
|
||||||
<Skeleton h={20} w={"100%"} />
|
<CustomSkeleton h={20} w={"100%"} />
|
||||||
<Skeleton h={20} w={"100%"} />
|
<CustomSkeleton h={20} w={"100%"} />
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</ComponentGlobal_CardStyles>
|
</ComponentGlobal_CardStyles>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component";
|
import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component";
|
||||||
import { Stack, Center, Skeleton, Grid } from "@mantine/core";
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
|
import { Center, Grid, Stack } from "@mantine/core";
|
||||||
|
|
||||||
export default function Event_ComponentSkeletonListPeserta() {
|
export default function Event_ComponentSkeletonListPeserta() {
|
||||||
return (
|
return (
|
||||||
@@ -7,20 +8,20 @@ export default function Event_ComponentSkeletonListPeserta() {
|
|||||||
<ComponentGlobal_CardStyles>
|
<ComponentGlobal_CardStyles>
|
||||||
<Stack spacing={"lg"}>
|
<Stack spacing={"lg"}>
|
||||||
<Center>
|
<Center>
|
||||||
<Skeleton height={20} width={"50%"} />
|
<CustomSkeleton height={20} width={"50%"} />
|
||||||
</Center>
|
</Center>
|
||||||
|
|
||||||
<Stack>
|
<Stack>
|
||||||
{Array.from(new Array(3)).map((e, i) => (
|
{Array.from(new Array(3)).map((e, i) => (
|
||||||
<Grid key={i} align="center">
|
<Grid key={i} align="center">
|
||||||
<Grid.Col span={"content"}>
|
<Grid.Col span={"content"}>
|
||||||
<Skeleton radius={"100%"} h={30} w={30} />
|
<CustomSkeleton radius={"100%"} h={30} w={30} />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={"auto"}>
|
<Grid.Col span={"auto"}>
|
||||||
<Skeleton h={20} w={"50%"} />
|
<CustomSkeleton h={20} w={"50%"} />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={2}>
|
<Grid.Col span={2}>
|
||||||
<Skeleton h={20} w={"50%"} />
|
<CustomSkeleton h={20} w={"50%"} />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import moment from "moment";
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { Event_ComponentCreateButton } from "../component";
|
import { Event_ComponentCreateButton } from "../component";
|
||||||
import ComponentEvent_ErrorMaximalInput from "../component/error_maksimal_input";
|
import ComponentEvent_ErrorMaximalInput from "../component/error_maksimal_input";
|
||||||
|
import { MainColor } from "@/app_modules/_global/color";
|
||||||
|
|
||||||
export default function Event_Create({
|
export default function Event_Create({
|
||||||
listTipeAcara,
|
listTipeAcara,
|
||||||
@@ -47,8 +48,14 @@ export default function Event_Create({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red,
|
||||||
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Judul"
|
label="Judul"
|
||||||
placeholder="Masukan judul"
|
placeholder="Masukan judul"
|
||||||
@@ -64,8 +71,14 @@ export default function Event_Create({
|
|||||||
<Select
|
<Select
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red,
|
||||||
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
label="Tipe Acara"
|
label="Tipe Acara"
|
||||||
@@ -85,8 +98,14 @@ export default function Event_Create({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red,
|
||||||
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Lokasi"
|
label="Lokasi"
|
||||||
placeholder="Masukan lokasi acara"
|
placeholder="Masukan lokasi acara"
|
||||||
@@ -104,8 +123,14 @@ export default function Event_Create({
|
|||||||
<DateTimePicker
|
<DateTimePicker
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red,
|
||||||
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
excludeDate={(date) => {
|
excludeDate={(date) => {
|
||||||
return moment(date).diff(Date.now(), "days") < 0;
|
return moment(date).diff(Date.now(), "days") < 0;
|
||||||
@@ -144,8 +169,14 @@ export default function Event_Create({
|
|||||||
<DateTimePicker
|
<DateTimePicker
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red,
|
||||||
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
excludeDate={(date) => {
|
excludeDate={(date) => {
|
||||||
return moment(date).diff(Date.now(), "days") < 0;
|
return moment(date).diff(Date.now(), "days") < 0;
|
||||||
@@ -187,8 +218,14 @@ export default function Event_Create({
|
|||||||
<Textarea
|
<Textarea
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red,
|
||||||
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Deskripsi"
|
label="Deskripsi"
|
||||||
placeholder="Deskripsikan acara yang akan di selenggarakan"
|
placeholder="Deskripsikan acara yang akan di selenggarakan"
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export default function LayoutEvent_Main({
|
|||||||
<ActionIcon
|
<ActionIcon
|
||||||
// disabled={e.path === "" ? true : false}
|
// disabled={e.path === "" ? true : false}
|
||||||
variant="transparent"
|
variant="transparent"
|
||||||
c={hotMenu === i ? MainColor.yellow : "white"}
|
c={hotMenu === i ? MainColor.yellow : MainColor.white}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
e.path === ""
|
e.path === ""
|
||||||
? ComponentGlobal_NotifikasiPeringatan("Cooming Soon")
|
? ComponentGlobal_NotifikasiPeringatan("Cooming Soon")
|
||||||
@@ -80,7 +80,7 @@ export default function LayoutEvent_Main({
|
|||||||
{e.icon}
|
{e.icon}
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
<Text
|
<Text
|
||||||
c={hotMenu === i ? MainColor.yellow : "white"}
|
c={hotMenu === i ? MainColor.yellow : MainColor.white}
|
||||||
fz={"xs"}
|
fz={"xs"}
|
||||||
lineClamp={1}
|
lineClamp={1}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -71,11 +71,11 @@ export default function Event_Riwayat({
|
|||||||
style={{
|
style={{
|
||||||
transition: "0.5s",
|
transition: "0.5s",
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
changeStatus === e.id ? MainColor.yellow : "white",
|
changeStatus === e.id ? MainColor.yellow : MainColor.white,
|
||||||
border:
|
border:
|
||||||
changeStatus === e.id
|
changeStatus === e.id
|
||||||
? `1px solid ${AccentColor.yellow}`
|
? `1px solid ${AccentColor.yellow}`
|
||||||
: `1px solid white`,
|
: `1px solid ${MainColor.white}`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{e.label}
|
{e.label}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export default function Event_StatusPage({
|
|||||||
style={{
|
style={{
|
||||||
transition: "0.5s",
|
transition: "0.5s",
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
changeStatus === e.id ? MainColor.yellow : "white",
|
changeStatus === e.id ? MainColor.yellow : MainColor.white,
|
||||||
border:
|
border:
|
||||||
changeStatus === e.id
|
changeStatus === e.id
|
||||||
? `1px solid ${AccentColor.yellow}`
|
? `1px solid ${AccentColor.yellow}`
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export function Investasi_ComponentCardBerandaNew({ data }: { data: IDataInvesta
|
|||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={6}>
|
<Grid.Col span={6}>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Text fw={"bold"} align="center" lineClamp={2}>
|
<Text c={MainColor.white} fw={"bold"} align="center" lineClamp={2}>
|
||||||
{data?.title}
|
{data?.title}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
@@ -40,6 +40,7 @@ export function Investasi_ComponentCardBerandaNew({ data }: { data: IDataInvesta
|
|||||||
color={MainColor.yellow}
|
color={MainColor.yellow}
|
||||||
size="xl"
|
size="xl"
|
||||||
radius="xl"
|
radius="xl"
|
||||||
|
style={{ backgroundColor: MainColor.white }}
|
||||||
styles={{
|
styles={{
|
||||||
label: { color: MainColor.black },
|
label: { color: MainColor.black },
|
||||||
}}
|
}}
|
||||||
@@ -84,15 +85,15 @@ export function Investasi_ComponentCardBerandaNew({ data }: { data: IDataInvesta
|
|||||||
</Group>
|
</Group>
|
||||||
) : (
|
) : (
|
||||||
<Group position="right" spacing={"xs"}>
|
<Group position="right" spacing={"xs"}>
|
||||||
<Text truncate>Sisa waktu:</Text>
|
<Text c={MainColor.white} truncate>Sisa waktu:</Text>
|
||||||
<Text truncate>
|
<Text c={MainColor.white} truncate>
|
||||||
{Number(data?.pencarianInvestor) -
|
{Number(data?.pencarianInvestor) -
|
||||||
moment(new Date()).diff(
|
moment(new Date()).diff(
|
||||||
new Date(data?.countDown),
|
new Date(data?.countDown),
|
||||||
"days"
|
"days"
|
||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
<Text truncate>Hari</Text>
|
<Text c={MainColor.white} truncate>Hari</Text>
|
||||||
</Group>
|
</Group>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export function Investasi_ComponentFooterMain() {
|
|||||||
<ActionIcon
|
<ActionIcon
|
||||||
// disabled={e.path === "" ? true : false}
|
// disabled={e.path === "" ? true : false}
|
||||||
variant="transparent"
|
variant="transparent"
|
||||||
c={hotMenu === i ? MainColor.yellow : "white"}
|
c={hotMenu === i ? MainColor.yellow : MainColor.white}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
router.push(e.route, { scroll: false });
|
router.push(e.route, { scroll: false });
|
||||||
setHotMenu(i);
|
setHotMenu(i);
|
||||||
@@ -62,7 +62,7 @@ export function Investasi_ComponentFooterMain() {
|
|||||||
{e.icon}
|
{e.icon}
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
<Text
|
<Text
|
||||||
c={hotMenu === i ? MainColor.yellow : "white"}
|
c={hotMenu === i ? MainColor.yellow : MainColor.white}
|
||||||
fz={"xs"}
|
fz={"xs"}
|
||||||
lineClamp={1}
|
lineClamp={1}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component";
|
import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component";
|
||||||
import { Box, Grid, Skeleton } from "@mantine/core";
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
|
import { Box, Grid } from "@mantine/core";
|
||||||
|
|
||||||
export default function SkeletonInvestasiBursa() {
|
export default function SkeletonInvestasiBursa() {
|
||||||
return (
|
return (
|
||||||
@@ -8,7 +9,7 @@ export default function SkeletonInvestasiBursa() {
|
|||||||
<ComponentGlobal_CardStyles key={index}>
|
<ComponentGlobal_CardStyles key={index}>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={6}>
|
<Grid.Col span={6}>
|
||||||
<Skeleton w={"100%"} height={100} radius="md" />
|
<CustomSkeleton w={"100%"} height={100} radius="md" />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={6}>
|
<Grid.Col span={6}>
|
||||||
<Box>
|
<Box>
|
||||||
@@ -16,7 +17,7 @@ export default function SkeletonInvestasiBursa() {
|
|||||||
<Box key={i} py={5}>
|
<Box key={i} py={5}>
|
||||||
<Grid align="center">
|
<Grid align="center">
|
||||||
<Grid.Col span={12}>
|
<Grid.Col span={12}>
|
||||||
<Skeleton w={"100%"} h={23} />
|
<CustomSkeleton w={"100%"} h={23} />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
RouterPortofolio,
|
RouterPortofolio,
|
||||||
RouterProfile,
|
RouterProfile,
|
||||||
} from "@/app/lib/router_hipmi/router_katalog";
|
} from "@/app/lib/router_hipmi/router_katalog";
|
||||||
import { AccentColor } from "@/app_modules/_global/color";
|
import { AccentColor, MainColor } from "@/app_modules/_global/color";
|
||||||
import {
|
import {
|
||||||
gs_admin_navbar_menu,
|
gs_admin_navbar_menu,
|
||||||
gs_admin_navbar_subMenu,
|
gs_admin_navbar_subMenu,
|
||||||
@@ -48,25 +48,25 @@ export default function DrawerKatalogNew({
|
|||||||
{
|
{
|
||||||
id: "1",
|
id: "1",
|
||||||
name: "Edit profile",
|
name: "Edit profile",
|
||||||
icon: <IconEdit />,
|
icon: <IconEdit color={MainColor.white} />,
|
||||||
path: RouterProfile.edit + param.id,
|
path: RouterProfile.edit + param.id,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "2",
|
id: "2",
|
||||||
name: "Ubah foto profile",
|
name: "Ubah foto profile",
|
||||||
icon: <IconPhotoEdit />,
|
icon: <IconPhotoEdit color={MainColor.white} />,
|
||||||
path: RouterProfile.update_foto_profile + param.id,
|
path: RouterProfile.update_foto_profile + param.id,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "3",
|
id: "3",
|
||||||
name: "Ubah latar belakang",
|
name: "Ubah latar belakang",
|
||||||
icon: <IconPolaroid />,
|
icon: <IconPolaroid color={MainColor.white} />,
|
||||||
path: RouterProfile.update_foto_background + param.id,
|
path: RouterProfile.update_foto_background + param.id,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "4",
|
id: "4",
|
||||||
name: "Tambah portofolio",
|
name: "Tambah portofolio",
|
||||||
icon: <IconPencilPlus />,
|
icon: <IconPencilPlus color={MainColor.white} />,
|
||||||
path: RouterPortofolio.create + param.id,
|
path: RouterPortofolio.create + param.id,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -95,7 +95,7 @@ export default function DrawerKatalogNew({
|
|||||||
borderRight: `1px solid ${AccentColor.blue}`,
|
borderRight: `1px solid ${AccentColor.blue}`,
|
||||||
borderLeft: `1px solid ${AccentColor.blue}`,
|
borderLeft: `1px solid ${AccentColor.blue}`,
|
||||||
borderRadius: "20px 20px 0px 0px",
|
borderRadius: "20px 20px 0px 0px",
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
paddingBottom: "5%",
|
paddingBottom: "5%",
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
@@ -103,7 +103,7 @@ export default function DrawerKatalogNew({
|
|||||||
<Stack spacing={"xs"}>
|
<Stack spacing={"xs"}>
|
||||||
<Group position="right">
|
<Group position="right">
|
||||||
<ActionIcon onClick={close} variant="transparent">
|
<ActionIcon onClick={close} variant="transparent">
|
||||||
<IconX color="white" />
|
<IconX color={MainColor.white} />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Group>
|
</Group>
|
||||||
<SimpleGrid cols={4}>
|
<SimpleGrid cols={4}>
|
||||||
@@ -113,10 +113,10 @@ export default function DrawerKatalogNew({
|
|||||||
router.push(e.path, { scroll: false });
|
router.push(e.path, { scroll: false });
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ActionIcon variant="transparent" c="white" >
|
<ActionIcon variant="transparent" c={MainColor.white} >
|
||||||
{e.icon}
|
{e.icon}
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
<Text align="center" color="white">
|
<Text align="center" color={MainColor.white}>
|
||||||
{e.name}
|
{e.name}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
@@ -136,7 +136,7 @@ export default function DrawerKatalogNew({
|
|||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconDashboard />
|
<IconDashboard color={MainColor.white} />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
<Text align="center" color="white">
|
<Text align="center" color="white">
|
||||||
Dashboard Admin
|
Dashboard Admin
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import { useParams, useRouter } from "next/navigation";
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { apiDeletePortofolio, apiGetOnePortofolioById } from "../lib/api_portofolio";
|
import { apiDeletePortofolio, apiGetOnePortofolioById } from "../lib/api_portofolio";
|
||||||
import { IDetailPortofolioBisnis } from "../lib/type_portofolio";
|
import { IDetailPortofolioBisnis } from "../lib/type_portofolio";
|
||||||
|
import { MainColor } from "@/app_modules/_global/color";
|
||||||
|
|
||||||
export default function ComponentPortofolio_ButtonDeleteNew() {
|
export default function ComponentPortofolio_ButtonDeleteNew() {
|
||||||
const param = useParams<{ id: string }>()
|
const param = useParams<{ id: string }>()
|
||||||
@@ -59,7 +60,7 @@ export default function ComponentPortofolio_ButtonDeleteNew() {
|
|||||||
{userLoginId === dataPorto?.authorId ? (
|
{userLoginId === dataPorto?.authorId ? (
|
||||||
<Button
|
<Button
|
||||||
radius={"xl"}
|
radius={"xl"}
|
||||||
bg={"red"}
|
bg={MainColor.red}
|
||||||
color="red"
|
color="red"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setModal(true)
|
setModal(true)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import { useParams } from "next/navigation";
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { apiGetOnePortofolioById } from "../lib/api_portofolio";
|
import { apiGetOnePortofolioById } from "../lib/api_portofolio";
|
||||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||||
|
import { MainColor } from "@/app_modules/_global/color";
|
||||||
|
|
||||||
export default function ComponentPortofolio_ButtonMoreNew() {
|
export default function ComponentPortofolio_ButtonMoreNew() {
|
||||||
const param = useParams<{ id: string }>()
|
const param = useParams<{ id: string }>()
|
||||||
@@ -20,31 +21,31 @@ export default function ComponentPortofolio_ButtonMoreNew() {
|
|||||||
{
|
{
|
||||||
id: "1",
|
id: "1",
|
||||||
name: "Edit detail ",
|
name: "Edit detail ",
|
||||||
icon: <IconEdit />,
|
icon: <IconEdit color={MainColor.white} />,
|
||||||
path: RouterPortofolio.edit_data_bisnis + `${param.id}`,
|
path: RouterPortofolio.edit_data_bisnis + `${param.id}`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "2",
|
id: "2",
|
||||||
name: "Edit logo ",
|
name: "Edit logo ",
|
||||||
icon: <IconPhotoEdit />,
|
icon: <IconPhotoEdit color={MainColor.white} />,
|
||||||
path: RouterPortofolio.edit_logo_bisnis + `${param.id}`,
|
path: RouterPortofolio.edit_logo_bisnis + `${param.id}`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "3",
|
id: "3",
|
||||||
name: "Edit sosial media",
|
name: "Edit sosial media",
|
||||||
icon: <IconId />,
|
icon: <IconId color={MainColor.white} />,
|
||||||
path: RouterPortofolio.edit_medsos_bisnis + `${param.id}`,
|
path: RouterPortofolio.edit_medsos_bisnis + `${param.id}`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "4",
|
id: "4",
|
||||||
name: "Edit data map",
|
name: "Edit data map",
|
||||||
icon: <IconMapPin2 />,
|
icon: <IconMapPin2 color={MainColor.white} />,
|
||||||
path: RouterMap.edit + `${param.id}`,
|
path: RouterMap.edit + `${param.id}`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "5",
|
id: "5",
|
||||||
name: "Custom pin map",
|
name: "Custom pin map",
|
||||||
icon: <IconMapPin />,
|
icon: <IconMapPin color={MainColor.white} />,
|
||||||
path: RouterMap.custom_pin + `${param.id}`,
|
path: RouterMap.custom_pin + `${param.id}`,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -53,31 +54,31 @@ export default function ComponentPortofolio_ButtonMoreNew() {
|
|||||||
{
|
{
|
||||||
id: "1",
|
id: "1",
|
||||||
name: "Edit detail ",
|
name: "Edit detail ",
|
||||||
icon: <IconEdit />,
|
icon: <IconEdit color={MainColor.white} />,
|
||||||
path: RouterPortofolio.edit_data_bisnis + `${param.id}`,
|
path: RouterPortofolio.edit_data_bisnis + `${param.id}`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "2",
|
id: "2",
|
||||||
name: "Edit logo ",
|
name: "Edit logo ",
|
||||||
icon: <IconPhotoEdit />,
|
icon: <IconPhotoEdit color={MainColor.white} />,
|
||||||
path: RouterPortofolio.edit_logo_bisnis + `${param.id}`,
|
path: RouterPortofolio.edit_logo_bisnis + `${param.id}`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "3",
|
id: "3",
|
||||||
name: "Edit sosial media",
|
name: "Edit sosial media",
|
||||||
icon: <IconId />,
|
icon: <IconId color={MainColor.white} />,
|
||||||
path: RouterPortofolio.edit_medsos_bisnis + `${param.id}`,
|
path: RouterPortofolio.edit_medsos_bisnis + `${param.id}`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "4",
|
id: "4",
|
||||||
name: "Edit data map",
|
name: "Edit data map",
|
||||||
icon: <IconMapPin2 />,
|
icon: <IconMapPin2 color={MainColor.white} />,
|
||||||
path: RouterMap.create + `${param.id}`,
|
path: RouterMap.create + `${param.id}`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "5",
|
id: "5",
|
||||||
name: "Custom pin map",
|
name: "Custom pin map",
|
||||||
icon: <IconMapPin />,
|
icon: <IconMapPin color={MainColor.white} />,
|
||||||
path: RouterMap.custom_pin + `${param.id}`,
|
path: RouterMap.custom_pin + `${param.id}`,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -107,7 +108,7 @@ export default function ComponentPortofolio_ButtonMoreNew() {
|
|||||||
<>
|
<>
|
||||||
{userLoginId === authorId ? (
|
{userLoginId === authorId ? (
|
||||||
<ActionIcon variant="transparent" onClick={() => setOpenDrawer(true)}>
|
<ActionIcon variant="transparent" onClick={() => setOpenDrawer(true)}>
|
||||||
<IconDotsVertical color="white" />
|
<IconDotsVertical color={MainColor.white} />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
) : (
|
) : (
|
||||||
<ActionIcon disabled variant="transparent"></ActionIcon>
|
<ActionIcon disabled variant="transparent"></ActionIcon>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export function ComponentPortofolio_DaftarBoxView({
|
|||||||
>
|
>
|
||||||
<Group position="apart">
|
<Group position="apart">
|
||||||
<Stack spacing={0} w={"80%"}>
|
<Stack spacing={0} w={"80%"}>
|
||||||
<Text fw={"bold"} lineClamp={1} w={"80%"}>
|
<Text c={MainColor.white} fw={"bold"} lineClamp={1} w={"80%"}>
|
||||||
{data?.namaBisnis}
|
{data?.namaBisnis}
|
||||||
</Text>
|
</Text>
|
||||||
<Text fz={10} c={MainColor.yellow}>
|
<Text fz={10} c={MainColor.yellow}>
|
||||||
@@ -52,7 +52,7 @@ export function ComponentPortofolio_DaftarBoxView({
|
|||||||
|
|
||||||
|
|
||||||
{/* GA PAKE LOADING */}
|
{/* GA PAKE LOADING */}
|
||||||
<IconCaretRight color="white" size={25} />
|
<IconCaretRight color={MainColor.white} size={25} />
|
||||||
</Stack>
|
</Stack>
|
||||||
</Group>
|
</Group>
|
||||||
</Paper>
|
</Paper>
|
||||||
|
|||||||
@@ -67,8 +67,14 @@ export default function CreatePortofolio({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
label="Nama Bisnis"
|
label="Nama Bisnis"
|
||||||
@@ -82,10 +88,17 @@ export default function CreatePortofolio({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Select
|
<Select
|
||||||
|
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
label="Bidang Bisnis"
|
label="Bidang Bisnis"
|
||||||
@@ -104,8 +117,14 @@ export default function CreatePortofolio({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
label="Alamat Bisnis"
|
label="Alamat Bisnis"
|
||||||
@@ -121,8 +140,14 @@ export default function CreatePortofolio({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
label="Nomor Telepon "
|
label="Nomor Telepon "
|
||||||
@@ -139,8 +164,14 @@ export default function CreatePortofolio({
|
|||||||
<Textarea
|
<Textarea
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
maxLength={300}
|
maxLength={300}
|
||||||
autosize
|
autosize
|
||||||
@@ -164,7 +195,7 @@ export default function CreatePortofolio({
|
|||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Stack>
|
<Stack>
|
||||||
<ComponentGlobal_BoxInformation informasi="Upload Logo Bisnis Anda!" />
|
<ComponentGlobal_BoxInformation informasi="Upload Logo Bisnis Anda" />
|
||||||
<ComponentGlobal_BoxUploadImage>
|
<ComponentGlobal_BoxUploadImage>
|
||||||
{img ? (
|
{img ? (
|
||||||
<AspectRatio ratio={1 / 1} mah={265} mx={"auto"}>
|
<AspectRatio ratio={1 / 1} mah={265} mx={"auto"}>
|
||||||
@@ -177,8 +208,8 @@ export default function CreatePortofolio({
|
|||||||
</AspectRatio>
|
</AspectRatio>
|
||||||
) : (
|
) : (
|
||||||
<Stack spacing={5} justify="center" align="center" h={"100%"}>
|
<Stack spacing={5} justify="center" align="center" h={"100%"}>
|
||||||
<Title order={3}>Upload Logo Bisnis</Title>
|
<Title c={MainColor.white} order={3}>Upload Logo Bisnis</Title>
|
||||||
<Text fs={"italic"} fz={10} align="center">
|
<Text c={MainColor.white} fs={"italic"} fz={10} align="center">
|
||||||
Masukan logo bisnis anda untuk ditampilkan dalam portofolio
|
Masukan logo bisnis anda untuk ditampilkan dalam portofolio
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
@@ -275,8 +306,11 @@ export default function CreatePortofolio({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Facebook"
|
label="Facebook"
|
||||||
maxLength={100}
|
maxLength={100}
|
||||||
@@ -291,8 +325,11 @@ export default function CreatePortofolio({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Instagram"
|
label="Instagram"
|
||||||
maxLength={100}
|
maxLength={100}
|
||||||
@@ -307,8 +344,11 @@ export default function CreatePortofolio({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Tiktok"
|
label="Tiktok"
|
||||||
maxLength={100}
|
maxLength={100}
|
||||||
@@ -323,8 +363,11 @@ export default function CreatePortofolio({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Twitter"
|
label="Twitter"
|
||||||
maxLength={100}
|
maxLength={100}
|
||||||
@@ -339,8 +382,11 @@ export default function CreatePortofolio({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Youtube"
|
label="Youtube"
|
||||||
maxLength={100}
|
maxLength={100}
|
||||||
|
|||||||
@@ -37,8 +37,14 @@ export default function Portofolio_EditDataBisnis({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
value={value.namaBisnis}
|
value={value.namaBisnis}
|
||||||
@@ -62,8 +68,14 @@ export default function Portofolio_EditDataBisnis({
|
|||||||
<Select
|
<Select
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
value={value.MasterBidangBisnis.id}
|
value={value.MasterBidangBisnis.id}
|
||||||
@@ -85,8 +97,14 @@ export default function Portofolio_EditDataBisnis({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
value={value.alamatKantor}
|
value={value.alamatKantor}
|
||||||
@@ -110,8 +128,14 @@ export default function Portofolio_EditDataBisnis({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
value={value.tlpn}
|
value={value.tlpn}
|
||||||
@@ -137,8 +161,14 @@ export default function Portofolio_EditDataBisnis({
|
|||||||
<Textarea
|
<Textarea
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
autosize
|
autosize
|
||||||
minRows={2}
|
minRows={2}
|
||||||
|
|||||||
@@ -34,15 +34,21 @@ export default function Portofolio_EditMedsosBisnis({
|
|||||||
border: `2px solid ${AccentColor.blue}`,
|
border: `2px solid ${AccentColor.blue}`,
|
||||||
borderRadius: "10px ",
|
borderRadius: "10px ",
|
||||||
padding: "15px",
|
padding: "15px",
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Stack px={"sm"}>
|
<Stack px={"sm"}>
|
||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Facebook"
|
label="Facebook"
|
||||||
value={medsos.facebook}
|
value={medsos.facebook}
|
||||||
@@ -57,8 +63,14 @@ export default function Portofolio_EditMedsosBisnis({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Instagram"
|
label="Instagram"
|
||||||
value={medsos.instagram}
|
value={medsos.instagram}
|
||||||
@@ -73,8 +85,14 @@ export default function Portofolio_EditMedsosBisnis({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Tiktok"
|
label="Tiktok"
|
||||||
value={medsos.tiktok}
|
value={medsos.tiktok}
|
||||||
@@ -89,8 +107,14 @@ export default function Portofolio_EditMedsosBisnis({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Twitter"
|
label="Twitter"
|
||||||
value={medsos.twitter}
|
value={medsos.twitter}
|
||||||
@@ -105,8 +129,14 @@ export default function Portofolio_EditMedsosBisnis({
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
label="Youtube"
|
label="Youtube"
|
||||||
value={medsos.youtube}
|
value={medsos.youtube}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { AccentColor, MainColor } from "@/app_modules/_global/color";
|
import { AccentColor, MainColor } from "@/app_modules/_global/color";
|
||||||
import { ComponentGlobal_LoadImage } from "@/app_modules/_global/component";
|
import { ComponentGlobal_LoadImage } from "@/app_modules/_global/component";
|
||||||
import { Paper, Stack, Group, Title, SimpleGrid, Box, Grid, Divider, Text } from "@mantine/core";
|
import { Box, Divider, Grid, Group, Paper, SimpleGrid, Stack, Text, Title } from "@mantine/core";
|
||||||
import { IconBuildingSkyscraper, IconListDetails, IconPhoneCall, IconMapPin, IconPinned } from "@tabler/icons-react";
|
|
||||||
import { useState } from "react";
|
|
||||||
import { IDetailPortofolioBisnis } from "../lib/type_portofolio";
|
|
||||||
import { useParams } from "next/navigation";
|
|
||||||
import { apiGetOnePortofolioById } from "../lib/api_portofolio";
|
|
||||||
import { useShallowEffect } from "@mantine/hooks";
|
import { useShallowEffect } from "@mantine/hooks";
|
||||||
|
import { IconBuildingSkyscraper, IconListDetails, IconMapPin, IconPhoneCall, IconPinned } from "@tabler/icons-react";
|
||||||
|
import { useParams } from "next/navigation";
|
||||||
|
import { useState } from "react";
|
||||||
|
import { apiGetOnePortofolioById } from "../lib/api_portofolio";
|
||||||
|
import { IDetailPortofolioBisnis } from "../lib/type_portofolio";
|
||||||
import SkeletonDetailBisnis from "./ui_skeleton_detail_bisnis";
|
import SkeletonDetailBisnis from "./ui_skeleton_detail_bisnis";
|
||||||
|
|
||||||
export default function Portofolio_UiDetailDataNew() {
|
export default function Portofolio_UiDetailDataNew() {
|
||||||
@@ -41,7 +41,7 @@ export default function Portofolio_UiDetailDataNew() {
|
|||||||
border: `2px solid ${AccentColor.blue}`,
|
border: `2px solid ${AccentColor.blue}`,
|
||||||
borderRadius: "10px ",
|
borderRadius: "10px ",
|
||||||
padding: "15px",
|
padding: "15px",
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,16 +1,17 @@
|
|||||||
import { APIs } from "@/app/lib";
|
import { APIs } from "@/app/lib";
|
||||||
import { AccentColor } from "@/app_modules/_global/color";
|
import { AccentColor, MainColor } from "@/app_modules/_global/color";
|
||||||
|
import ComponentGlobal_IsEmptyData from "@/app_modules/_global/component/is_empty_data";
|
||||||
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
|
import { ComponentMap_DetailData, ComponentMap_DrawerDetailData } from "@/app_modules/map/_component";
|
||||||
import { defaultMapZoom } from "@/app_modules/map/lib/default_lat_long";
|
import { defaultMapZoom } from "@/app_modules/map/lib/default_lat_long";
|
||||||
import { Paper, Stack, Title, Avatar, Skeleton, Text } from "@mantine/core";
|
import { Avatar, Paper, Stack, Title } from "@mantine/core";
|
||||||
|
import { useShallowEffect } from "@mantine/hooks";
|
||||||
import "mapbox-gl/dist/mapbox-gl.css";
|
import "mapbox-gl/dist/mapbox-gl.css";
|
||||||
import { useParams } from "next/navigation";
|
import { useParams } from "next/navigation";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { AttributionControl, Map, Marker, NavigationControl, ScaleControl, } from "react-map-gl";
|
import { AttributionControl, Map, Marker, NavigationControl, ScaleControl, } from "react-map-gl";
|
||||||
import { IDetailPortofolioLokasi } from "../lib/type_portofolio";
|
|
||||||
import { apiGetOnePortofolioById } from "../lib/api_portofolio";
|
import { apiGetOnePortofolioById } from "../lib/api_portofolio";
|
||||||
import { useShallowEffect } from "@mantine/hooks";
|
import { IDetailPortofolioLokasi } from "../lib/type_portofolio";
|
||||||
import { ComponentMap_DetailData, ComponentMap_DrawerDetailData } from "@/app_modules/map/_component";
|
|
||||||
import ComponentGlobal_IsEmptyData from "@/app_modules/_global/component/is_empty_data";
|
|
||||||
|
|
||||||
export default function Portofolio_UiMapNew({ mapboxToken }: { mapboxToken: string }) {
|
export default function Portofolio_UiMapNew({ mapboxToken }: { mapboxToken: string }) {
|
||||||
const [loading, setLoading] = useState(true)
|
const [loading, setLoading] = useState(true)
|
||||||
@@ -46,7 +47,7 @@ export default function Portofolio_UiMapNew({ mapboxToken }: { mapboxToken: stri
|
|||||||
border: `2px solid ${AccentColor.blue}`,
|
border: `2px solid ${AccentColor.blue}`,
|
||||||
borderRadius: "10px ",
|
borderRadius: "10px ",
|
||||||
padding: "15px",
|
padding: "15px",
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Stack spacing={0}>
|
<Stack spacing={0}>
|
||||||
@@ -55,7 +56,7 @@ export default function Portofolio_UiMapNew({ mapboxToken }: { mapboxToken: stri
|
|||||||
</Title>
|
</Title>
|
||||||
{
|
{
|
||||||
loading ?
|
loading ?
|
||||||
<Skeleton radius={"md"} w={"100%"} h={100} />
|
<CustomSkeleton radius={"md"} w={"100%"} h={100} />
|
||||||
:
|
:
|
||||||
dataPorto?.mapId === null || dataPorto?.mapId === undefined ?
|
dataPorto?.mapId === null || dataPorto?.mapId === undefined ?
|
||||||
<ComponentGlobal_IsEmptyData text="Tidak ada data" height={10} />
|
<ComponentGlobal_IsEmptyData text="Tidak ada data" height={10} />
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
import { AccentColor } from "@/app_modules/_global/color";
|
import { AccentColor, MainColor } from "@/app_modules/_global/color";
|
||||||
import { Paper, Title, Stack, Grid, Text, Skeleton, Box } from "@mantine/core";
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
|
import { Box, Grid, Paper, Stack, Text, Title } from "@mantine/core";
|
||||||
|
import { useShallowEffect } from "@mantine/hooks";
|
||||||
import { IconBrandFacebook, IconBrandInstagram, IconBrandTiktok, IconBrandTwitter, IconBrandYoutube } from "@tabler/icons-react";
|
import { IconBrandFacebook, IconBrandInstagram, IconBrandTiktok, IconBrandTwitter, IconBrandYoutube } from "@tabler/icons-react";
|
||||||
import { useParams } from "next/navigation";
|
import { useParams } from "next/navigation";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { IDetailPortofolioSosmed } from "../lib/type_portofolio";
|
|
||||||
import { apiGetOnePortofolioById } from "../lib/api_portofolio";
|
import { apiGetOnePortofolioById } from "../lib/api_portofolio";
|
||||||
import { useShallowEffect } from "@mantine/hooks";
|
import { IDetailPortofolioSosmed } from "../lib/type_portofolio";
|
||||||
|
|
||||||
export default function Portofolio_UiSosialMediaNew() {
|
export default function Portofolio_UiSosialMediaNew() {
|
||||||
const [loading, setLoading] = useState(true)
|
const [loading, setLoading] = useState(true)
|
||||||
@@ -40,7 +41,7 @@ export default function Portofolio_UiSosialMediaNew() {
|
|||||||
border: `2px solid ${AccentColor.blue}`,
|
border: `2px solid ${AccentColor.blue}`,
|
||||||
borderRadius: "10px ",
|
borderRadius: "10px ",
|
||||||
padding: "15px",
|
padding: "15px",
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Title order={6}>Media Sosial Bisnis</Title>
|
<Title order={6}>Media Sosial Bisnis</Title>
|
||||||
@@ -51,10 +52,10 @@ export default function Portofolio_UiSosialMediaNew() {
|
|||||||
<Box key={index} py={5}>
|
<Box key={index} py={5}>
|
||||||
<Grid align="center">
|
<Grid align="center">
|
||||||
<Grid.Col span={1}>
|
<Grid.Col span={1}>
|
||||||
<Skeleton w={25} h={25} />
|
<CustomSkeleton w={25} h={25} />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={11}>
|
<Grid.Col span={11}>
|
||||||
<Skeleton w={"100%"} h={15} />
|
<CustomSkeleton w={"100%"} h={15} />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
import { Box, Grid, Group, Skeleton, Stack } from "@mantine/core";
|
import { Box, Grid, Group, Skeleton, Stack } from "@mantine/core";
|
||||||
|
|
||||||
export default function SkeletonDetailBisnis() {
|
export default function SkeletonDetailBisnis() {
|
||||||
@@ -5,7 +6,15 @@ export default function SkeletonDetailBisnis() {
|
|||||||
<Box>
|
<Box>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={6}>
|
<Grid.Col span={6}>
|
||||||
<Skeleton w={"100%"} height={200} radius="md" />
|
<CustomSkeleton w={"60%"} height={15} radius="md" />
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col span={6}>
|
||||||
|
<CustomSkeleton w={"100%"} height={15} radius="md" />
|
||||||
|
</Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
<Grid>
|
||||||
|
<Grid.Col span={6}>
|
||||||
|
<CustomSkeleton w={"100%"} height={200} radius="md" />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={6}>
|
<Grid.Col span={6}>
|
||||||
<Box>
|
<Box>
|
||||||
@@ -13,10 +22,10 @@ export default function SkeletonDetailBisnis() {
|
|||||||
<Box key={index} py={5}>
|
<Box key={index} py={5}>
|
||||||
<Grid align="center">
|
<Grid align="center">
|
||||||
<Grid.Col span={2}>
|
<Grid.Col span={2}>
|
||||||
<Skeleton w={25} h={25} />
|
<CustomSkeleton w={25} h={25} />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={10}>
|
<Grid.Col span={10}>
|
||||||
<Skeleton w={"100%"} h={15} />
|
<CustomSkeleton w={"100%"} h={15} />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Box>
|
</Box>
|
||||||
@@ -25,10 +34,10 @@ export default function SkeletonDetailBisnis() {
|
|||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Box mt={"md"}>
|
<Box mt={"md"}>
|
||||||
<Skeleton w={"30%"} h={15} my={10} />
|
<CustomSkeleton w={"30%"} h={15} my={10} />
|
||||||
<Skeleton w={"95%"} h={15} my={10} />
|
<CustomSkeleton w={"95%"} h={15} my={10} />
|
||||||
<Skeleton w={"95%"} h={15} my={10} />
|
<CustomSkeleton w={"95%"} h={15} my={10} />
|
||||||
<Skeleton w={"95%"} h={15} my={10} />
|
<CustomSkeleton w={"95%"} h={15} my={10} />
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</>;
|
</>;
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { Center, Image, Skeleton } from "@mantine/core";
|
|||||||
import { useShallowEffect } from "@mantine/hooks";
|
import { useShallowEffect } from "@mantine/hooks";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
import { MainColor } from "@/app_modules/_global/color";
|
||||||
|
|
||||||
export function Profile_ComponentLoadBackgroundImage({
|
export function Profile_ComponentLoadBackgroundImage({
|
||||||
fileId,
|
fileId,
|
||||||
@@ -41,7 +42,7 @@ export function Profile_ComponentLoadBackgroundImage({
|
|||||||
if (!isImage)
|
if (!isImage)
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Center h={200} bg={"white"} style={{ borderRadius: "10px" }}>
|
<Center h={200} bg={MainColor.white} style={{ borderRadius: "10px" }}>
|
||||||
<Image
|
<Image
|
||||||
alt="No Image"
|
alt="No Image"
|
||||||
maw={150}
|
maw={150}
|
||||||
@@ -64,7 +65,7 @@ export function Profile_ComponentLoadBackgroundImage({
|
|||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
style={{
|
style={{
|
||||||
borderColor: "white",
|
borderColor: MainColor.white,
|
||||||
borderStyle: "solid",
|
borderStyle: "solid",
|
||||||
borderWidth: "1px",
|
borderWidth: "1px",
|
||||||
borderRadius: "5px",
|
borderRadius: "5px",
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export default function EditProfile({ data }: { data: MODEL_PROFILE }) {
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
@@ -66,7 +66,7 @@ export default function EditProfile({ data }: { data: MODEL_PROFILE }) {
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
@@ -92,8 +92,11 @@ export default function EditProfile({ data }: { data: MODEL_PROFILE }) {
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
label="Nama"
|
label="Nama"
|
||||||
@@ -118,8 +121,11 @@ export default function EditProfile({ data }: { data: MODEL_PROFILE }) {
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
label="Email"
|
label="Email"
|
||||||
@@ -146,8 +152,11 @@ export default function EditProfile({ data }: { data: MODEL_PROFILE }) {
|
|||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
label="Alamat"
|
label="Alamat"
|
||||||
@@ -172,8 +181,11 @@ export default function EditProfile({ data }: { data: MODEL_PROFILE }) {
|
|||||||
<Select
|
<Select
|
||||||
styles={{
|
styles={{
|
||||||
label: {
|
label: {
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white,
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
label="Jenis Kelamin"
|
label="Jenis Kelamin"
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { useShallowEffect } from "@mantine/hooks";
|
|||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
import { RouterPortofolio } from "@/app/lib/router_hipmi/router_katalog";
|
import { RouterPortofolio } from "@/app/lib/router_hipmi/router_katalog";
|
||||||
import { IconCaretRight } from "@tabler/icons-react";
|
import { IconCaretRight } from "@tabler/icons-react";
|
||||||
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
|
|
||||||
export default function ListPortofolioProfileNew() {
|
export default function ListPortofolioProfileNew() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -42,7 +43,7 @@ export default function ListPortofolioProfileNew() {
|
|||||||
border: `2px solid ${AccentColor.blue}`,
|
border: `2px solid ${AccentColor.blue}`,
|
||||||
borderRadius: "10px ",
|
borderRadius: "10px ",
|
||||||
padding: "15px",
|
padding: "15px",
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Stack spacing={"sm"}>
|
<Stack spacing={"sm"}>
|
||||||
@@ -58,8 +59,8 @@ export default function ListPortofolioProfileNew() {
|
|||||||
{
|
{
|
||||||
loading ?
|
loading ?
|
||||||
<>
|
<>
|
||||||
<Skeleton height={70} radius={"md"} width={"100%"} />
|
<CustomSkeleton height={70} radius={"md"} width={"100%"} />
|
||||||
<Skeleton height={70} radius={"md"} width={"100%"} />
|
<CustomSkeleton height={70} radius={"md"} width={"100%"} />
|
||||||
</>
|
</>
|
||||||
:
|
:
|
||||||
|
|
||||||
@@ -84,7 +85,7 @@ export default function ListPortofolioProfileNew() {
|
|||||||
border: `2px solid ${AccentColor.blue}`,
|
border: `2px solid ${AccentColor.blue}`,
|
||||||
borderRadius: "10px ",
|
borderRadius: "10px ",
|
||||||
padding: "15px",
|
padding: "15px",
|
||||||
color: "white",
|
color: MainColor.white,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Group position="apart">
|
<Group position="apart">
|
||||||
@@ -97,7 +98,7 @@ export default function ListPortofolioProfileNew() {
|
|||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Stack>
|
<Stack>
|
||||||
<IconCaretRight color="white" size={25} />
|
<IconCaretRight color={MainColor.white} size={25} />
|
||||||
</Stack>
|
</Stack>
|
||||||
</Group>
|
</Group>
|
||||||
</Paper>
|
</Paper>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { AccentColor } from "@/app_modules/_global/color";
|
import { AccentColor, MainColor } from "@/app_modules/_global/color";
|
||||||
import { apiGetUserProfile, IUserProfile } from "@/app_modules/user";
|
import { apiGetUserProfile, IUserProfile } from "@/app_modules/user";
|
||||||
import { Box, Center, Group, Stack, Text, ThemeIcon } from "@mantine/core";
|
import { Box, Center, Group, Stack, Text, ThemeIcon } from "@mantine/core";
|
||||||
import { useShallowEffect } from "@mantine/hooks";
|
import { useShallowEffect } from "@mantine/hooks";
|
||||||
@@ -14,23 +14,23 @@ export default function ProfileDetail() {
|
|||||||
const [dataProfile, setDataProfile] = useState<IUserProfile>()
|
const [dataProfile, setDataProfile] = useState<IUserProfile>()
|
||||||
const listInformation = [
|
const listInformation = [
|
||||||
{
|
{
|
||||||
icon: <IconPhone />,
|
icon: <IconPhone color={MainColor.white} />,
|
||||||
value: "+" + dataProfile?.nomor,
|
value: "+" + dataProfile?.nomor,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: <IconBrandGmail />,
|
icon: <IconBrandGmail color={MainColor.white} />,
|
||||||
value: dataProfile?.email,
|
value: dataProfile?.email,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: <IconHome />,
|
icon: <IconHome color={MainColor.white} />,
|
||||||
value: dataProfile?.alamat,
|
value: dataProfile?.alamat,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon:
|
icon:
|
||||||
dataProfile?.jenisKelamin === "Laki-laki" ? (
|
dataProfile?.jenisKelamin === "Laki-laki" ? (
|
||||||
<IconGenderMale />
|
<IconGenderMale color={MainColor.white} />
|
||||||
) : (
|
) : (
|
||||||
<IconGenderFemale />
|
<IconGenderFemale color={MainColor.white}/>
|
||||||
),
|
),
|
||||||
value: dataProfile?.jenisKelamin,
|
value: dataProfile?.jenisKelamin,
|
||||||
},
|
},
|
||||||
@@ -64,7 +64,7 @@ export default function ProfileDetail() {
|
|||||||
border: `2px solid ${AccentColor.blue}`,
|
border: `2px solid ${AccentColor.blue}`,
|
||||||
borderRadius: "10px ",
|
borderRadius: "10px ",
|
||||||
padding: "15px",
|
padding: "15px",
|
||||||
color: "white",
|
color: MainColor.white
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
@@ -96,11 +96,11 @@ export default function ProfileDetail() {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Center>
|
</Center>
|
||||||
<Stack align="center" c={"white"} mt={"xs"} spacing={0}>
|
<Stack align="center" c={MainColor.white} mt={"xs"} spacing={0}>
|
||||||
<Text fw={"bold"} lineClamp={1}>
|
<Text fw={"bold"} lineClamp={1} c={MainColor.white}>
|
||||||
{dataProfile?.name}
|
{dataProfile?.name}
|
||||||
</Text>
|
</Text>
|
||||||
<Text fs={"italic"} fz={"sm"} lineClamp={1}>
|
<Text fs={"italic"} fz={"sm"} c={MainColor.white} lineClamp={1}>
|
||||||
@{dataProfile?.username}
|
@{dataProfile?.username}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
@@ -118,7 +118,7 @@ export default function ProfileDetail() {
|
|||||||
{e.icon}
|
{e.icon}
|
||||||
</ThemeIcon>
|
</ThemeIcon>
|
||||||
<Box w={"85%"}>
|
<Box w={"85%"}>
|
||||||
<Text fw={"bold"}>{e?.value}</Text>
|
<Text c={MainColor.white} fw={"bold"}>{e?.value}</Text>
|
||||||
</Box>
|
</Box>
|
||||||
</Group>
|
</Group>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { Avatar, Box, Center, Grid, Skeleton, Stack } from "@mantine/core";
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
|
import { Box, Center, Grid, Skeleton, Stack } from "@mantine/core";
|
||||||
|
|
||||||
export default function SkeletonProfile() {
|
export default function SkeletonProfile() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Box mb={"lg"}>
|
<Box mb={"lg"}>
|
||||||
<Skeleton height={200} radius={"md"} />
|
<CustomSkeleton height={200} radius={"md"} />
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
position: "relative",
|
position: "relative",
|
||||||
@@ -14,29 +15,75 @@ export default function SkeletonProfile() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Center>
|
<Center>
|
||||||
<Avatar radius={"50%"} size={100} bg={"gray"} />
|
<CustomSkeleton circle height={100} width={100} />
|
||||||
</Center>
|
</Center>
|
||||||
</Box>
|
</Box>
|
||||||
<Stack align="center" justify="center" spacing={"xs"}>
|
<Stack align="center" justify="center" spacing={"xs"}>
|
||||||
<Skeleton height={15} radius={"md"} width={"50%"} />
|
<CustomSkeleton height={15} radius={"md"} width={"50%"} />
|
||||||
<Skeleton height={15} radius={"md"} width={"20%"} />
|
<CustomSkeleton height={15} radius={"md"} width={"50%"}/>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Box mt={"lg"}>
|
<Box mt={"lg"}>
|
||||||
{[...Array(4)].map((_, index) => (
|
<Stack spacing={"xs"}>
|
||||||
<Box key={index} py={5}>
|
{[...Array(4)].map((_, index) => (
|
||||||
<Grid align="center">
|
<Box key={index} py={5}>
|
||||||
<Grid.Col span={1}>
|
<Grid align="center">
|
||||||
<Skeleton w={25} h={25} />
|
<Grid.Col span={1}>
|
||||||
</Grid.Col>
|
<CustomSkeleton w={25} h={25}/>
|
||||||
<Grid.Col span={11}>
|
</Grid.Col>
|
||||||
<Skeleton w={"100%"} h={15} />
|
<Grid.Col span={11}>
|
||||||
</Grid.Col>
|
<CustomSkeleton w={"50%"} h={15}/>
|
||||||
</Grid>
|
</Grid.Col>
|
||||||
</Box>
|
</Grid>
|
||||||
))}
|
</Box>
|
||||||
|
))}
|
||||||
|
</Stack>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</>
|
</>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
// import { Avatar, Box, Center, Grid, Skeleton, Stack } from "@mantine/core";
|
||||||
|
|
||||||
|
// export default function SkeletonProfile() {
|
||||||
|
// return (
|
||||||
|
// <>
|
||||||
|
// <Box mb={"lg"}>
|
||||||
|
// <Skeleton height={200} radius={"md"} />
|
||||||
|
// <Box
|
||||||
|
// sx={{
|
||||||
|
// position: "relative",
|
||||||
|
// bottom: 60,
|
||||||
|
// width: "100%",
|
||||||
|
// marginBottom: -30,
|
||||||
|
// }}
|
||||||
|
// >
|
||||||
|
// <Center>
|
||||||
|
// <Avatar radius={"50%"} size={100} />
|
||||||
|
// </Center>
|
||||||
|
// </Box>
|
||||||
|
// <Stack align="center" justify="center" spacing={"xs"}>
|
||||||
|
// <Skeleton height={15} radius={"md"} width={"50%"} />
|
||||||
|
// <Skeleton height={15} radius={"md"} width={"50%"} />
|
||||||
|
// </Stack>
|
||||||
|
|
||||||
|
// <Box mt={"lg"}>
|
||||||
|
// <Stack spacing={"xs"}>
|
||||||
|
// {[...Array(4)].map((_, index) => (
|
||||||
|
// <Box key={index} py={5}>
|
||||||
|
// <Grid align="center">
|
||||||
|
// <Grid.Col span={1}>
|
||||||
|
// <Skeleton w={25} h={25} />
|
||||||
|
// </Grid.Col>
|
||||||
|
// <Grid.Col span={11}>
|
||||||
|
// <Skeleton w={"50%"} h={15} />
|
||||||
|
// </Grid.Col>
|
||||||
|
// </Grid>
|
||||||
|
// </Box>
|
||||||
|
// ))}
|
||||||
|
// </Stack>
|
||||||
|
// </Box>
|
||||||
|
// </Box>
|
||||||
|
// </>
|
||||||
|
// )
|
||||||
|
// }
|
||||||
@@ -109,7 +109,13 @@ export function UiMap_CreatePin({
|
|||||||
<TextInput
|
<TextInput
|
||||||
disabled={isPin ? false : true}
|
disabled={isPin ? false : true}
|
||||||
style={{ transition: "0.5s" }}
|
style={{ transition: "0.5s" }}
|
||||||
styles={{ label: { color: isPin ? "white" : "gray" } }}
|
styles={{ label: { color: isPin ? MainColor.white : "gray" },
|
||||||
|
input: {
|
||||||
|
backgroundColor: MainColor.white
|
||||||
|
},
|
||||||
|
required: {
|
||||||
|
color: MainColor.red,
|
||||||
|
} }}
|
||||||
label="Nama Pin"
|
label="Nama Pin"
|
||||||
placeholder="Masukan nama pin map"
|
placeholder="Masukan nama pin map"
|
||||||
withAsterisk
|
withAsterisk
|
||||||
@@ -132,8 +138,8 @@ export function UiMap_CreatePin({
|
|||||||
</AspectRatio>
|
</AspectRatio>
|
||||||
) : (
|
) : (
|
||||||
<Stack spacing={5} justify="center" align="center" h={"100%"}>
|
<Stack spacing={5} justify="center" align="center" h={"100%"}>
|
||||||
<Title order={3}>Foto Lokasi Bisnis</Title>
|
<Title c={MainColor.white} order={3}>Foto Lokasi Bisnis</Title>
|
||||||
<Text fs={"italic"} fz={10} align="center">
|
<Text c={MainColor.white} fs={"italic"} fz={10} align="center">
|
||||||
Upload foto lokasi bisnis anda untuk ditampilkan dalam detail
|
Upload foto lokasi bisnis anda untuk ditampilkan dalam detail
|
||||||
map
|
map
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
@@ -114,8 +114,8 @@ export function UiMap_EditMap({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
style={{ transition: "0.5s" }}
|
style={{ transition: "0.5s", }}
|
||||||
styles={{ label: { color: "white" } }}
|
styles={{ label: { color: MainColor.white }, required: { color: MainColor.red }, input: { backgroundColor: MainColor.white } }}
|
||||||
label="Nama Pin"
|
label="Nama Pin"
|
||||||
placeholder="Masukan nama pin map"
|
placeholder="Masukan nama pin map"
|
||||||
value={data.namePin}
|
value={data.namePin}
|
||||||
|
|||||||
Reference in New Issue
Block a user