fix: Admin
Deskripsi: - Penambahan field nama rekening di db bank - Optimalisasi event ## No Issue
This commit is contained in:
28
src/app_modules/_global/component/comp_tampilan_rupiah.tsx
Normal file
28
src/app_modules/_global/component/comp_tampilan_rupiah.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
import { MainColor } from "@/app_modules/_global/color/color_pallet";
|
||||
import { Text } from "@mantine/core";
|
||||
|
||||
export default function ComponentGlobal_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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
3
src/app_modules/_global/component/index.ts
Normal file
3
src/app_modules/_global/component/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import ComponentGlobal_TampilanRupiah from "./comp_tampilan_rupiah";
|
||||
|
||||
export { ComponentGlobal_TampilanRupiah };
|
||||
Reference in New Issue
Block a user