title: auto
des: auto note:auto
This commit is contained in:
@@ -4,6 +4,6 @@ import React from "react";
|
||||
|
||||
export default async function Layout({children}: {children: React.ReactNode}) {
|
||||
return<>
|
||||
<LayoutEditIntroInvestasi onUpdate={test_server}>{children}</LayoutEditIntroInvestasi>
|
||||
<LayoutEditIntroInvestasi >{children}</LayoutEditIntroInvestasi>
|
||||
</>
|
||||
}
|
||||
@@ -15,7 +15,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
return (
|
||||
<>
|
||||
<EditIntroInvestasi
|
||||
onUp={test_server}
|
||||
|
||||
dataInvestasi={dataInvestasi as any}
|
||||
listPencarian={listPencarian as any}
|
||||
listPeriode={listPeriode as any}
|
||||
|
||||
@@ -5,10 +5,10 @@ import { AppShell, Stack, Text } from "@mantine/core";
|
||||
import React from "react";
|
||||
|
||||
export default function LayoutEditIntroInvestasi({
|
||||
onUpdate,
|
||||
|
||||
children,
|
||||
}: {
|
||||
onUpdate: () => Promise<string>;
|
||||
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
|
||||
@@ -35,13 +35,13 @@ import { useDisclosure, useWindowScroll } from "@mantine/hooks";
|
||||
import { test_server } from "./_makuro/test_server";
|
||||
|
||||
export default function EditIntroInvestasi({
|
||||
onUp,
|
||||
|
||||
dataInvestasi,
|
||||
listPencarian,
|
||||
listPeriode,
|
||||
listPembagian,
|
||||
}: {
|
||||
onUp: () => Promise<string>;
|
||||
|
||||
dataInvestasi: MODEL_Investasi;
|
||||
listPencarian: MODEL_DEFAULT_MASTER[];
|
||||
listPeriode: MODEL_DEFAULT_MASTER[];
|
||||
@@ -70,8 +70,7 @@ export default function EditIntroInvestasi({
|
||||
const fd = new FormData();
|
||||
fd.append("file", fl as any);
|
||||
|
||||
const test = await onUp();
|
||||
console.log(test);
|
||||
|
||||
|
||||
// await funEditInvestasi(fd, body).then(async (res) => {
|
||||
// res.status === 200
|
||||
|
||||
Reference in New Issue
Block a user