Invesment

Fix:
- ComponentBoxOnBottomDetail: file route > /(file)/[id].tsx

Feature:
- app/(application)/(file)/

## No Issue
This commit is contained in:
2025-08-01 15:09:20 +08:00
parent db0f4246b6
commit 0eebe64647
5 changed files with 29 additions and 24 deletions

View File

@@ -0,0 +1,25 @@
import { BackButton, ViewWrapper } from "@/components";
import { MainColor } from "@/constants/color-palet";
import { FontAwesome } from "@expo/vector-icons";
import { Stack } from "expo-router";
export default function FileScreen() {
return (
<>
<Stack.Screen
options={{
title: "File",
headerLeft: () => <BackButton />,
}}
/>
<ViewWrapper>
<FontAwesome
name="file-pdf-o"
size={300}
style={{ alignSelf: "center" }}
color={MainColor.white}
/>
</ViewWrapper>
</>
);
}

View File

@@ -8,7 +8,7 @@ export default function InvestmentListOfDocument() {
<Investment_BoxDetailDocument
key={index}
title={`Judul Dokumen ${index + 1}`}
href={`/investment/${index + 1}/dokumen/file`}
href={`/(file)/${index + 1}`}
/>
))}
</ViewWrapper>

View File

@@ -53,7 +53,7 @@ export default function InvestmentRecapOfDocument() {
onPress={() => setOpenDrawerBox(true)}
/>
}
href={`/investment/${id}/dokumen/file`}
href={`/(file)/${id}`}
/>
))}
</ViewWrapper>

View File

@@ -1,20 +0,0 @@
import { BackButton, TextCustom, ViewWrapper } from "@/components";
import { Stack, useLocalSearchParams } from "expo-router";
import _ from "lodash";
export default function InvestmentProspectus() {
const { file } = useLocalSearchParams();
return (
<>
<Stack.Screen
options={{
title: `Pratinjau ${_.startCase(file as string)}`,
headerLeft: () => <BackButton />,
}}
/>
<ViewWrapper>
<TextCustom>Pratinjau File</TextCustom>
</ViewWrapper>
</>
);
}

View File

@@ -25,7 +25,7 @@ export default function Invesment_ComponentBoxOnBottomDetail({
<BaseBox
backgroundColor={AccentColor.blue}
style={{ borderColor: AccentColor.softblue, borderWidth: 1 }}
href={`/investment/${id}/prospektus/file`}
href={`/(file)/${id}`}
>
<StackCustom>
<TextCustom align="center">Prospektus</TextCustom>
@@ -94,7 +94,7 @@ export default function Invesment_ComponentBoxOnBottomDetail({
<BaseBox
backgroundColor={AccentColor.blue}
style={{ borderColor: AccentColor.softblue, borderWidth: 1 }}
href={`/investment/${id}/prospektus/file`}
href={`/(file)/${id}`}
>
<StackCustom>
<TextCustom align="center">Prospektus</TextCustom>