UI – Investment (User) - app/(application)/(user)/investment/(tabs)/index.tsx - app/(application)/(user)/investment/(tabs)/portofolio.tsx - app/(application)/(user)/investment/(tabs)/transaction.tsx - app/(application)/(user)/investment/[id]/(document)/list-of-document.tsx - app/(application)/(user)/investment/[id]/(document)/recap-of-document.tsx - app/(application)/(user)/investment/[id]/(transaction-flow)/invoice.tsx - app/(application)/(user)/investment/[id]/(transaction-flow)/select-bank.tsx Screens – Investment - screens/Invesment/ButtonStatusSection.tsx - screens/Invesment/Document/RecapBoxDetail.tsx - screens/Invesment/Document/ScreenListDocument.tsx - screens/Invesment/Document/ScreenRecap.tsx - screens/Invesment/ScreenBursa.tsx - screens/Invesment/ScreenPortofolio.tsx - screens/Invesment/ScreenTransaction.tsx Profile - app/(application)/(user)/profile/[id]/detail-blocked.tsx API Client - service/api-client/api-investment.ts Docs - docs/prompt-for-qwen-code.md ### No issue
28 lines
681 B
TypeScript
28 lines
681 B
TypeScript
import { BaseBox, ClickableCustom, Grid, TextCustom } from "@/components";
|
|
import { Href, router } from "expo-router";
|
|
|
|
export default function Investment_BoxDetailDocument({
|
|
title,
|
|
leftIcon,
|
|
href,
|
|
}: {
|
|
title: string;
|
|
leftIcon?: React.ReactNode;
|
|
href?: Href | string;
|
|
}) {
|
|
return (
|
|
<>
|
|
<BaseBox>
|
|
<Grid>
|
|
<Grid.Col span={leftIcon ? 10 : 12}>
|
|
<ClickableCustom onPress={() => router.push(href as any)}>
|
|
<TextCustom truncate>{title || "-"}</TextCustom>
|
|
</ClickableCustom>
|
|
</Grid.Col>
|
|
{leftIcon && <Grid.Col span={2}>{leftIcon}</Grid.Col>}
|
|
</Grid>
|
|
</BaseBox>
|
|
</>
|
|
);
|
|
}
|