Add: - app/(application)/(user)/investment/[id]/[file]/ - app/(application)/(user)/investment/[id]/add-document.tsx - app/(application)/(user)/investment/[id]/edit-document.tsx - app/(application)/(user)/investment/[id]/edit-prospectus.tsx - app/(application)/(user)/investment/[id]/recap-of-document.tsx Fix: - app/(application)/(user)/investment/[id]/list-of-document.tsx - app/(application)/(user)/investment/[id]/edit.tsx - app/(application)/(user)/investment/[id]/[status]/detail.tsx ## No Issue
29 lines
670 B
TypeScript
29 lines
670 B
TypeScript
import { BaseBox, Grid, TextCustom } from "@/components";
|
|
import { Href } from "expo-router";
|
|
|
|
export default function Investment_BoxDetailDocument({
|
|
title,
|
|
leftIcon,
|
|
href,
|
|
}: {
|
|
title: string;
|
|
leftIcon?: React.ReactNode;
|
|
href?: Href;
|
|
}) {
|
|
return (
|
|
<>
|
|
<BaseBox href={href}>
|
|
<Grid>
|
|
<Grid.Col span={leftIcon ? 10 : 12}>
|
|
<TextCustom truncate>
|
|
{title ||
|
|
`Judul Dokumen: Lorem, ipsum dolor sit amet consectetur adipisicing elit.`}
|
|
</TextCustom>
|
|
</Grid.Col>
|
|
{leftIcon && <Grid.Col span={2}>{leftIcon}</Grid.Col>}
|
|
</Grid>
|
|
</BaseBox>
|
|
</>
|
|
);
|
|
}
|