Invesment
Add: - app/(application)/(user)/investment/[id]/(document)/ ## No Issue
This commit is contained in:
@@ -21,7 +21,7 @@ export default function Invesment_ComponentBoxOnBottomDetail({
|
||||
{status === "publish" ? (
|
||||
<>
|
||||
<Grid>
|
||||
<Grid.Col span={6} style={{ paddingInline: 5 }}>
|
||||
<Grid.Col span={6} style={{ paddingInline: 5, marginBlock: 0 }}>
|
||||
<BaseBox
|
||||
backgroundColor={AccentColor.blue}
|
||||
style={{ borderColor: AccentColor.softblue, borderWidth: 1 }}
|
||||
@@ -36,11 +36,11 @@ export default function Invesment_ComponentBoxOnBottomDetail({
|
||||
</BaseBox>
|
||||
</Grid.Col>
|
||||
|
||||
<Grid.Col span={6} style={{ paddingInline: 5 }}>
|
||||
<Grid.Col span={6} style={{ paddingInline: 5, marginBlock: 0 }}>
|
||||
<BaseBox
|
||||
backgroundColor={AccentColor.blue}
|
||||
style={{ borderColor: AccentColor.softblue, borderWidth: 1 }}
|
||||
href={`/investment/${id}/list-of-document`}
|
||||
href={`/investment/${id}/(document)/list-of-document`}
|
||||
>
|
||||
<StackCustom>
|
||||
<TextCustom align="center">Dokumen</TextCustom>
|
||||
@@ -53,7 +53,7 @@ export default function Invesment_ComponentBoxOnBottomDetail({
|
||||
</Grid>
|
||||
|
||||
<Grid>
|
||||
<Grid.Col span={6} style={{ paddingInline: 5 }}>
|
||||
<Grid.Col span={6} style={{ paddingInline: 5, marginBlock: 0 }}>
|
||||
<BaseBox
|
||||
backgroundColor={AccentColor.blue}
|
||||
style={{ borderColor: AccentColor.softblue, borderWidth: 1 }}
|
||||
@@ -72,7 +72,7 @@ export default function Invesment_ComponentBoxOnBottomDetail({
|
||||
</BaseBox>
|
||||
</Grid.Col>
|
||||
|
||||
<Grid.Col span={6} style={{ paddingInline: 5 }}>
|
||||
<Grid.Col span={6} style={{ paddingInline: 5, marginBlock: 0 }}>
|
||||
<BaseBox
|
||||
backgroundColor={AccentColor.blue}
|
||||
style={{ borderColor: AccentColor.softblue, borderWidth: 1 }}
|
||||
@@ -109,7 +109,7 @@ export default function Invesment_ComponentBoxOnBottomDetail({
|
||||
<BaseBox
|
||||
backgroundColor={AccentColor.blue}
|
||||
style={{ borderColor: AccentColor.softblue, borderWidth: 1 }}
|
||||
href={`/investment/${id}/list-of-document`}
|
||||
href={`/investment/${id}/(document)/list-of-document`}
|
||||
>
|
||||
<StackCustom>
|
||||
<TextCustom align="center">Dokumen</TextCustom>
|
||||
|
||||
@@ -1,35 +1,38 @@
|
||||
import { Spacing, StackCustom } from "@/components";
|
||||
import { listDataNotPublishInvesment, listDataPublishInvesment } from "@/lib/dummy-data/investment/dummy-data-not-publish";
|
||||
import {
|
||||
listDataNotPublishInvesment,
|
||||
listDataPublishInvesment,
|
||||
} from "@/lib/dummy-data/investment/dummy-data-not-publish";
|
||||
import React from "react";
|
||||
import Invesment_BoxDetailDataSection from "./BoxDetailDataSection";
|
||||
import Invesment_BoxProgressSection from "./BoxProgressSection";
|
||||
import Investment_ButtonStatusSection from "./ButtonStatusSection";
|
||||
|
||||
export default function Invesment_DetailDataPublishSection({
|
||||
status,
|
||||
bottomSection,
|
||||
buttonSection,
|
||||
status,
|
||||
bottomSection,
|
||||
buttonSection,
|
||||
}: {
|
||||
status: string;
|
||||
bottomSection: React.ReactNode;
|
||||
buttonSection: React.ReactNode
|
||||
status: string;
|
||||
bottomSection: React.ReactNode;
|
||||
buttonSection: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<StackCustom gap={"sm"}>
|
||||
<Invesment_BoxProgressSection status={status as string} />
|
||||
<Invesment_BoxDetailDataSection
|
||||
data={
|
||||
status === "publish"
|
||||
? listDataPublishInvesment
|
||||
: listDataNotPublishInvesment
|
||||
}
|
||||
bottomSection={bottomSection}
|
||||
/>
|
||||
<Investment_ButtonStatusSection status={status as string} />
|
||||
{buttonSection}
|
||||
</StackCustom>
|
||||
<Spacing />
|
||||
</>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<StackCustom gap={"sm"}>
|
||||
<Invesment_BoxProgressSection status={status as string} />
|
||||
<Invesment_BoxDetailDataSection
|
||||
data={
|
||||
status === "publish"
|
||||
? listDataPublishInvesment
|
||||
: listDataNotPublishInvesment
|
||||
}
|
||||
bottomSection={bottomSection}
|
||||
/>
|
||||
<Investment_ButtonStatusSection status={status as string} />
|
||||
{buttonSection}
|
||||
</StackCustom>
|
||||
<Spacing />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user