Add: - screens/Invesment/ComponentBoxOnBottomDetail.tsx - screens/Invesment/ButtonInvestasiSection.tsx - app/(application)/(user)/investment/[id]/investor.tsx - app/(application)/(user)/investment/[id]/(news)/list-of-news.tsx Fix: - screens/Invesment/BoxDetailDataSection.tsx - app/(application)/(user)/investment/[id]/[status]/detail.tsx - app/(application)/(user)/_layout.tsx ## No Issue
51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
import {
|
|
BaseBox,
|
|
DummyLandscapeImage,
|
|
Grid,
|
|
Spacing,
|
|
StackCustom,
|
|
TextCustom,
|
|
} from "@/components";
|
|
import { View } from "react-native";
|
|
|
|
export default function Invesment_BoxDetailDataSection({
|
|
title,
|
|
data,
|
|
bottomSection,
|
|
}: {
|
|
title?: string;
|
|
data: any;
|
|
bottomSection?: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<>
|
|
<BaseBox paddingBottom={0}>
|
|
<StackCustom gap={"xs"}>
|
|
<DummyLandscapeImage />
|
|
<Spacing />
|
|
<TextCustom align="center" size="xlarge" bold>
|
|
{title || "Judul Investasi"}
|
|
</TextCustom>
|
|
<Spacing />
|
|
|
|
{data.map((item: any, index: any) => (
|
|
<Grid key={index}>
|
|
<Grid.Col span={4}>
|
|
<TextCustom bold>{item.label}</TextCustom>
|
|
</Grid.Col>
|
|
<Grid.Col span={1}>
|
|
<View />
|
|
</Grid.Col>
|
|
<Grid.Col span={7} style={{ justifyContent: "center" }}>
|
|
<TextCustom>{item.value}</TextCustom>
|
|
</Grid.Col>
|
|
</Grid>
|
|
))}
|
|
<Spacing />
|
|
{bottomSection}
|
|
</StackCustom>
|
|
</BaseBox>
|
|
</>
|
|
);
|
|
}
|