Invesment

Add:
- app/(application)/(user)/investment/[id]/(document)/

## No Issue
This commit is contained in:
2025-07-31 16:38:28 +08:00
parent 2931f6ba55
commit cc35bc6907
11 changed files with 62 additions and 57 deletions

View File

@@ -214,13 +214,6 @@ export default function UserLayout() {
headerLeft: () => <BackButton />, headerLeft: () => <BackButton />,
}} }}
/> />
<Stack.Screen
name="investment/[id]/list-of-document"
options={{
title: "Daftar Dokumen",
headerLeft: () => <BackButton />,
}}
/>
<Stack.Screen <Stack.Screen
name="investment/[id]/edit" name="investment/[id]/edit"
options={{ options={{
@@ -228,27 +221,36 @@ export default function UserLayout() {
headerLeft: () => <BackButton />, headerLeft: () => <BackButton />,
}} }}
/> />
<Stack.Screen <Stack.Screen
name="investment/[id]/add-document" name="investment/[id]/edit-prospectus"
options={{
title: "Edit Prospektus",
headerLeft: () => <BackButton />,
}}
/>
<Stack.Screen
name="investment/[id]/(document)/list-of-document"
options={{
title: "Daftar Dokumen",
headerLeft: () => <BackButton />,
}}
/>
<Stack.Screen
name="investment/[id]/(document)/add-document"
options={{ options={{
title: "Tambah Dokumen", title: "Tambah Dokumen",
headerLeft: () => <BackButton />, headerLeft: () => <BackButton />,
}} }}
/> />
<Stack.Screen <Stack.Screen
name="investment/[id]/edit-document" name="investment/[id]/(document)/edit-document"
options={{ options={{
title: "Edit Dokumen", title: "Edit Dokumen",
headerLeft: () => <BackButton />, headerLeft: () => <BackButton />,
}} }}
/> />
<Stack.Screen
name="investment/[id]/edit-prospectus"
options={{
title: "Edit Prospektus",
headerLeft: () => <BackButton />,
}}
/>
<Stack.Screen <Stack.Screen
name="investment/[id]/(news)/add-news" name="investment/[id]/(news)/add-news"

View File

@@ -75,7 +75,7 @@ export default function InvestmentRecapOfDocument() {
/> />
), ),
label: "Tambah Dokumen", label: "Tambah Dokumen",
path: `/investment/${id}/add-document`, path: `/investment/${id}/(document)/add-document`,
}, },
]} ]}
onPressItem={(item) => { onPressItem={(item) => {
@@ -96,7 +96,7 @@ export default function InvestmentRecapOfDocument() {
{ {
icon: <IconEdit />, icon: <IconEdit />,
label: "Edit Dokumen", label: "Edit Dokumen",
path: `/investment/${id}/edit-document`, path: `/investment/${id}/(document)/edit-document`,
}, },
{ {
icon: ( icon: (

View File

@@ -101,7 +101,7 @@ export default function InvestmentDetailStatus() {
/> />
), ),
label: "Update Dokumen", label: "Update Dokumen",
path: `/investment/${id}/recap-of-document`, path: `/investment/${id}/(document)/recap-of-document`,
}, },
]} ]}
columns={4} columns={4}
@@ -120,7 +120,7 @@ export default function InvestmentDetailStatus() {
{ {
icon: <IconDocument />, icon: <IconDocument />,
label: "Update Dokumen", label: "Update Dokumen",
path: `/investment/${id}/recap-of-document`, path: `/investment/${id}/(document)/recap-of-document`,
}, },
{ {
icon: <IconNews />, icon: <IconNews />,

View File

@@ -37,7 +37,7 @@ export default function InvestmentDetail() {
const bottomSection = ( const bottomSection = (
<Invesment_ComponentBoxOnBottomDetail <Invesment_ComponentBoxOnBottomDetail
id={id as string} id={id as string}
status={status as string} status={'publish'}
/> />
); );

View File

@@ -90,8 +90,8 @@ const Col: React.FC<ColProps> = ({ children, span, style }) => {
col: { col: {
flexBasis: `${(100 / columns) * colSpan}%`, flexBasis: `${(100 / columns) * colSpan}%`,
paddingVertical: margin, paddingVertical: margin,
marginBottom: gap, // marginBottom: gap,
// marginBlock: gap, marginBlock: gap,
}, },
}); });

View File

@@ -32,13 +32,13 @@ export default function LoginView() {
// router.navigate("/verification"); // router.navigate("/verification");
// router.navigate(`/(application)/(user)/profile/${id}`); // router.navigate(`/(application)/(user)/profile/${id}`);
// router.navigate("/(application)/(user)/home"); router.navigate("/(application)/(user)/home");
// router.navigate(`/(application)/profile/${id}/edit`); // router.navigate(`/(application)/profile/${id}/edit`);
// router.navigate(`/(application)/(user)/portofolio/${id}`) // router.navigate(`/(application)/(user)/portofolio/${id}`)
// router.navigate(`/(application)/(image)/preview-image/${id}`); // router.navigate(`/(application)/(image)/preview-image/${id}`);
// router.replace("/(application)/(user)/event/(tabs)"); // router.replace("/(application)/(user)/event/(tabs)");
// router.replace("/(application)/coba"); // router.replace("/(application)/coba");
router.navigate("/investment/(tabs)") // router.navigate("/investment/(tabs)")
} }
return ( return (

View File

@@ -21,7 +21,7 @@ export default function Invesment_ComponentBoxOnBottomDetail({
{status === "publish" ? ( {status === "publish" ? (
<> <>
<Grid> <Grid>
<Grid.Col span={6} style={{ paddingInline: 5 }}> <Grid.Col span={6} style={{ paddingInline: 5, marginBlock: 0 }}>
<BaseBox <BaseBox
backgroundColor={AccentColor.blue} backgroundColor={AccentColor.blue}
style={{ borderColor: AccentColor.softblue, borderWidth: 1 }} style={{ borderColor: AccentColor.softblue, borderWidth: 1 }}
@@ -36,11 +36,11 @@ export default function Invesment_ComponentBoxOnBottomDetail({
</BaseBox> </BaseBox>
</Grid.Col> </Grid.Col>
<Grid.Col span={6} style={{ paddingInline: 5 }}> <Grid.Col span={6} style={{ paddingInline: 5, marginBlock: 0 }}>
<BaseBox <BaseBox
backgroundColor={AccentColor.blue} backgroundColor={AccentColor.blue}
style={{ borderColor: AccentColor.softblue, borderWidth: 1 }} style={{ borderColor: AccentColor.softblue, borderWidth: 1 }}
href={`/investment/${id}/list-of-document`} href={`/investment/${id}/(document)/list-of-document`}
> >
<StackCustom> <StackCustom>
<TextCustom align="center">Dokumen</TextCustom> <TextCustom align="center">Dokumen</TextCustom>
@@ -53,7 +53,7 @@ export default function Invesment_ComponentBoxOnBottomDetail({
</Grid> </Grid>
<Grid> <Grid>
<Grid.Col span={6} style={{ paddingInline: 5 }}> <Grid.Col span={6} style={{ paddingInline: 5, marginBlock: 0 }}>
<BaseBox <BaseBox
backgroundColor={AccentColor.blue} backgroundColor={AccentColor.blue}
style={{ borderColor: AccentColor.softblue, borderWidth: 1 }} style={{ borderColor: AccentColor.softblue, borderWidth: 1 }}
@@ -72,7 +72,7 @@ export default function Invesment_ComponentBoxOnBottomDetail({
</BaseBox> </BaseBox>
</Grid.Col> </Grid.Col>
<Grid.Col span={6} style={{ paddingInline: 5 }}> <Grid.Col span={6} style={{ paddingInline: 5, marginBlock: 0 }}>
<BaseBox <BaseBox
backgroundColor={AccentColor.blue} backgroundColor={AccentColor.blue}
style={{ borderColor: AccentColor.softblue, borderWidth: 1 }} style={{ borderColor: AccentColor.softblue, borderWidth: 1 }}
@@ -109,7 +109,7 @@ export default function Invesment_ComponentBoxOnBottomDetail({
<BaseBox <BaseBox
backgroundColor={AccentColor.blue} backgroundColor={AccentColor.blue}
style={{ borderColor: AccentColor.softblue, borderWidth: 1 }} style={{ borderColor: AccentColor.softblue, borderWidth: 1 }}
href={`/investment/${id}/list-of-document`} href={`/investment/${id}/(document)/list-of-document`}
> >
<StackCustom> <StackCustom>
<TextCustom align="center">Dokumen</TextCustom> <TextCustom align="center">Dokumen</TextCustom>

View File

@@ -1,35 +1,38 @@
import { Spacing, StackCustom } from "@/components"; 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 React from "react";
import Invesment_BoxDetailDataSection from "./BoxDetailDataSection"; import Invesment_BoxDetailDataSection from "./BoxDetailDataSection";
import Invesment_BoxProgressSection from "./BoxProgressSection"; import Invesment_BoxProgressSection from "./BoxProgressSection";
import Investment_ButtonStatusSection from "./ButtonStatusSection"; import Investment_ButtonStatusSection from "./ButtonStatusSection";
export default function Invesment_DetailDataPublishSection({ export default function Invesment_DetailDataPublishSection({
status, status,
bottomSection, bottomSection,
buttonSection, buttonSection,
}: { }: {
status: string; status: string;
bottomSection: React.ReactNode; bottomSection: React.ReactNode;
buttonSection: React.ReactNode buttonSection: React.ReactNode;
}) { }) {
return ( return (
<> <>
<StackCustom gap={"sm"}> <StackCustom gap={"sm"}>
<Invesment_BoxProgressSection status={status as string} /> <Invesment_BoxProgressSection status={status as string} />
<Invesment_BoxDetailDataSection <Invesment_BoxDetailDataSection
data={ data={
status === "publish" status === "publish"
? listDataPublishInvesment ? listDataPublishInvesment
: listDataNotPublishInvesment : listDataNotPublishInvesment
} }
bottomSection={bottomSection} bottomSection={bottomSection}
/> />
<Investment_ButtonStatusSection status={status as string} /> <Investment_ButtonStatusSection status={status as string} />
{buttonSection} {buttonSection}
</StackCustom> </StackCustom>
<Spacing /> <Spacing />
</> </>
); );
} }