Add:
- screens/Donation/
- donation/[id]/

Fix:
- donation/(tabs)/status.tsx
- donation/create-story.tsx
- donation/create.tsx

## No Issue
This commit is contained in:
2025-08-04 11:28:21 +08:00
parent 25e495cdf1
commit d437365b5e
14 changed files with 583 additions and 56 deletions

View File

@@ -1,15 +1,7 @@
import {
Grid,
BaseBox,
DummyLandscapeImage,
ScrollableCustom,
StackCustom,
TextCustom,
ViewWrapper,
} from "@/components";
import { ScrollableCustom, ViewWrapper } from "@/components";
import { dummyMasterStatus } from "@/lib/dummy-data/_master/status";
import Donasi_BoxStatus from "@/screens/Donation/BoxStatus";
import { useState } from "react";
import { View } from "react-native";
export default function DonationStatus() {
const [activeCategory, setActiveCategory] = useState<string | null>(
@@ -35,39 +27,11 @@ export default function DonationStatus() {
return (
<ViewWrapper hideFooter headerComponent={scrollComponent}>
{Array.from({ length: 10 }).map((_, index) => (
<BaseBox
<Donasi_BoxStatus
key={index}
paddingTop={7}
paddingBottom={7}
href={`/investment/${index}`}
>
<Grid>
<Grid.Col span={5}>
<DummyLandscapeImage height={100} />
</Grid.Col>
<Grid.Col span={1}>
<View />
</Grid.Col>
<Grid.Col span={6}>
<StackCustom>
<TextCustom truncate>
Judul Donasi: {activeCategory} Lorem ipsum dolor sit amet
consectetur adipisicing elit.
</TextCustom>
<View>
<TextCustom>Target Dana</TextCustom>
<TextCustom bold color="yellow">
Rp. 7.500.000
</TextCustom>
</View>
{/* <TextCustom>
Terkumpul : Rp 300.000
</TextCustom> */}
</StackCustom>
</Grid.Col>
</Grid>
</BaseBox>
id={index.toString()}
status={activeCategory as string}
/>
))}
</ViewWrapper>
);