title: auto
des: auto note:auto
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
import { LayoutEditIntroInvestasi } from "@/app_modules/investasi";
|
import { LayoutEditIntroInvestasi } from "@/app_modules/investasi";
|
||||||
|
import { test_server } from "@/app_modules/investasi/edit_intro/_makuro/test_server";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export default async function Layout({children}: {children: React.ReactNode}) {
|
export default async function Layout({children}: {children: React.ReactNode}) {
|
||||||
return<>
|
return<>
|
||||||
<LayoutEditIntroInvestasi>{children}</LayoutEditIntroInvestasi>
|
<LayoutEditIntroInvestasi onUpdate={test_server}>{children}</LayoutEditIntroInvestasi>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { EditIntroInvestasi } from "@/app_modules/investasi";
|
import { EditIntroInvestasi } from "@/app_modules/investasi";
|
||||||
|
import { test_server } from "@/app_modules/investasi/edit_intro/_makuro/test_server";
|
||||||
import getOneInvestasiById from "@/app_modules/investasi/fun/get_one_investasi_by_id";
|
import getOneInvestasiById from "@/app_modules/investasi/fun/get_one_investasi_by_id";
|
||||||
import getPembagianDeviden from "@/app_modules/investasi/fun/master/get_pembagian_deviden";
|
import getPembagianDeviden from "@/app_modules/investasi/fun/master/get_pembagian_deviden";
|
||||||
import getPencarianInvestor from "@/app_modules/investasi/fun/master/get_pencarian_investor";
|
import getPencarianInvestor from "@/app_modules/investasi/fun/master/get_pencarian_investor";
|
||||||
@@ -14,6 +15,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<EditIntroInvestasi
|
<EditIntroInvestasi
|
||||||
|
onUp={test_server}
|
||||||
dataInvestasi={dataInvestasi as any}
|
dataInvestasi={dataInvestasi as any}
|
||||||
listPencarian={listPencarian as any}
|
listPencarian={listPencarian as any}
|
||||||
listPeriode={listPeriode as any}
|
listPeriode={listPeriode as any}
|
||||||
|
|||||||
@@ -5,15 +5,17 @@ import { AppShell, Stack, Text } from "@mantine/core";
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export default function LayoutEditIntroInvestasi({
|
export default function LayoutEditIntroInvestasi({
|
||||||
|
onUpdate,
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
|
onUpdate: () => Promise<string>;
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<AppShell header={<HeaderTamplate title="Edit Intro" />}>
|
<AppShell header={<HeaderTamplate title="Edit Intro" />}>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Text>v1.0.7</Text>
|
<Text>v1.0.8</Text>
|
||||||
{children}
|
{children}
|
||||||
</Stack>
|
</Stack>
|
||||||
</AppShell>
|
</AppShell>
|
||||||
|
|||||||
@@ -35,11 +35,13 @@ import { useDisclosure, useWindowScroll } from "@mantine/hooks";
|
|||||||
import { test_server } from "./_makuro/test_server";
|
import { test_server } from "./_makuro/test_server";
|
||||||
|
|
||||||
export default function EditIntroInvestasi({
|
export default function EditIntroInvestasi({
|
||||||
|
onUp,
|
||||||
dataInvestasi,
|
dataInvestasi,
|
||||||
listPencarian,
|
listPencarian,
|
||||||
listPeriode,
|
listPeriode,
|
||||||
listPembagian,
|
listPembagian,
|
||||||
}: {
|
}: {
|
||||||
|
onUp: () => Promise<string>;
|
||||||
dataInvestasi: MODEL_Investasi;
|
dataInvestasi: MODEL_Investasi;
|
||||||
listPencarian: MODEL_DEFAULT_MASTER[];
|
listPencarian: MODEL_DEFAULT_MASTER[];
|
||||||
listPeriode: MODEL_DEFAULT_MASTER[];
|
listPeriode: MODEL_DEFAULT_MASTER[];
|
||||||
@@ -68,7 +70,7 @@ export default function EditIntroInvestasi({
|
|||||||
const fd = new FormData();
|
const fd = new FormData();
|
||||||
fd.append("file", fl as any);
|
fd.append("file", fl as any);
|
||||||
|
|
||||||
const test = await test_server();
|
const test = await onUp();
|
||||||
console.log(test);
|
console.log(test);
|
||||||
|
|
||||||
// await funEditInvestasi(fd, body).then(async (res) => {
|
// await funEditInvestasi(fd, body).then(async (res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user