fix: Admin

Deskripsi:
- Penambahan field nama rekening di db bank
- Optimalisasi event
## No Issue
This commit is contained in:
2024-09-03 10:10:31 +08:00
parent 8a018462c7
commit 74108c3096
117 changed files with 2976 additions and 1144 deletions

View File

@@ -0,0 +1,29 @@
"use client";
import { Group, Title, TextInput } from "@mantine/core";
import { IconSearch } from "@tabler/icons-react";
import React from "react";
export function ComponentAdminGlobal_TitlePage({
name,
color,
component,
}: {
name: string;
color?: string;
component?: React.ReactNode;
}) {
return (
<>
<Group
position="apart"
bg={color ? color : "gray.4"}
p={"xs"}
style={{ borderRadius: "6px" }}
>
<Title order={4}>{name}</Title>
{component ? component : ""}
</Group>
</>
);
}

View File

@@ -17,8 +17,6 @@ export default function ComponentAdminGlobal_BackButton({
<>
<Group>
<Button
// loaderPosition="center"
// loading={isLoading ? true : false}
c={"gray"}
leftIcon={
isLoading ? (

View File

@@ -0,0 +1,28 @@
import { MainColor } from "@/app_modules/_global/color/color_pallet";
import { Text } from "@mantine/core";
export function ComponentAdminGlobal_TampilanRupiah({
nominal,
color,
fontSize,
}: {
nominal: number;
color?: string;
fontSize?: number;
}) {
return (
<>
<Text
fz={fontSize ? fontSize : "md"}
style={{
color: color ? color : "black",
}}
>
Rp.{" "}
{new Intl.NumberFormat("id-ID", { maximumFractionDigits: 10 }).format(
nominal
)}
</Text>
</>
);
}

View File

@@ -0,0 +1,5 @@
import { ComponentAdminGlobal_TitlePage } from "./_component/title_page";
import { ComponentAdminGlobal_TampilanRupiah } from "./comp_admin_teampilan_rupiah";
export { ComponentAdminGlobal_TampilanRupiah };
export { ComponentAdminGlobal_TitlePage };

View File

@@ -1,53 +0,0 @@
"use client";
import {
Box,
Center,
Group,
LoadingOverlay,
Skeleton,
Text,
} from "@mantine/core";
export default function ComponentAdminGlobal_LoadingPage() {
const listhHuruf = [
{
huruf: "H",
},
{
huruf: "I",
},
{
huruf: "P",
},
{
huruf: "M",
},
{
huruf: "I",
},
];
const customLOader = (
<Center h={"90vh"}>
<Group>
{listhHuruf.map((e, i) => (
<Center key={i} h={"100%"}>
<Skeleton height={50} circle radius={"100%"} />
<Text sx={{ position: "absolute" }} c={"gray.4"} fw={"bold"}>
{e.huruf}
</Text>
</Center>
))}
</Group>
</Center>
);
return (
<>
{/* <LoadingOverlay visible loader={customLOader} /> */}
<Box>
{customLOader}
</Box>
</>
);
}