diff --git a/app/(application)/(user)/_layout.tsx b/app/(application)/(user)/_layout.tsx index 7a633a4..c8ad9c0 100644 --- a/app/(application)/(user)/_layout.tsx +++ b/app/(application)/(user)/_layout.tsx @@ -404,7 +404,21 @@ export default function UserLayout() { headerLeft: () => , }} /> - + , + }} + /> + , + }} + /> + + , }} + /> + + {Array.from({ length: 15 }).map((_, index) => ( + + + + + Lorem ipsum dolor, sit amet consectetur adipisicing elit. + + + + + {dayjs().format("DD MMM YYYY")} + + + + + ))} + + + setOpenDrawer(false)} + height={"auto"} + > + , + label: "Tambah Berita", + path: `/donation/${id}/(news)/add-news`, + }, + ]} + onPressItem={(item) => { + console.log("PATH ", item.path); + router.navigate(item.path as any); + setOpenDrawer(false); + }} + /> + + + ); +} diff --git a/app/(application)/(user)/donation/[id]/fund-disbursement.tsx b/app/(application)/(user)/donation/[id]/fund-disbursement.tsx new file mode 100644 index 0000000..6f28714 --- /dev/null +++ b/app/(application)/(user)/donation/[id]/fund-disbursement.tsx @@ -0,0 +1,67 @@ +import { + BaseBox, + ButtonCenteredOnly, + Grid, + InformationBox, + StackCustom, + TextCustom, + ViewWrapper, +} from "@/components"; +import dayjs from "dayjs"; +import { router, useLocalSearchParams } from "expo-router"; + +export default function DonationFundDisbursement() { + const { id } = useLocalSearchParams(); + return ( + <> + + + + + + + Rp. 0 + + Total Pencairan Dana + + + + 0 kali + + Akumulasi Pencairan + + + + + {Array.from({ length: 10 }).map((_, index) => ( + + + + + Pencairan ke - {index + 1} + + + {dayjs().format("DD MMM YYYY")} + + + + Lorem ipsum dolor sit amet consectetur adipisicing elit. + Nesciunt dolor ad sit? Eaque rem nihil natus, id, esse possimus + perferendis provident velit illo consectetur distinctio ab + accusantium quis earum omnis! + + { + router.navigate(`/(application)/(file)/${id}`); + }} + icon="file-text" + > + Bukti Transaksi + + + + ))} + + + ); +} diff --git a/app/(application)/(user)/donation/[id]/index.tsx b/app/(application)/(user)/donation/[id]/index.tsx index c158476..be91868 100644 --- a/app/(application)/(user)/donation/[id]/index.tsx +++ b/app/(application)/(user)/donation/[id]/index.tsx @@ -40,7 +40,7 @@ export default function DonasiDetailBeranda() { } + bottomSection={} /> diff --git a/app/(application)/(user)/donation/[id]/list-of-donatur.tsx b/app/(application)/(user)/donation/[id]/list-of-donatur.tsx index 22309fc..d9f65af 100644 --- a/app/(application)/(user)/donation/[id]/list-of-donatur.tsx +++ b/app/(application)/(user)/donation/[id]/list-of-donatur.tsx @@ -1,10 +1,46 @@ -import { TextCustom, ViewWrapper } from "@/components"; +import { + BaseBox, + Grid, + StackCustom, + TextCustom, + ViewWrapper, +} from "@/components"; +import { MainColor } from "@/constants/color-palet"; +import { FontAwesome6 } from "@expo/vector-icons"; +import dayjs from "dayjs"; export default function Donation_ListOfDonatur() { return ( <> - Daftar Donatur + {Array.from({ length: 10 }).map((_, index) => ( + + + + + + + + + Username + + Berdonas sebesar + + Rp. 100.000 + + {dayjs().format("DD MMM YYYY")} + + + + + ))} ); diff --git a/components/Button/ButtonCenteredOnly.tsx b/components/Button/ButtonCenteredOnly.tsx index 8ec937a..0b7b09c 100644 --- a/components/Button/ButtonCenteredOnly.tsx +++ b/components/Button/ButtonCenteredOnly.tsx @@ -7,7 +7,7 @@ import ButtonCustom from "./ButtonCustom"; interface ButtonCenteredOnlyProps { children?: React.ReactNode; - icon?: "plus" | "upload"; + icon?: "plus" | "upload" | string; onPress: () => void; } export default function ButtonCenteredOnly({ @@ -19,7 +19,7 @@ export default function ButtonCenteredOnly({ + } style={[GStyles.buttonCentered50Percent]} > diff --git a/screens/Donation/ProgressSection.tsx b/screens/Donation/ProgressSection.tsx index 93e12a1..b0fcf5b 100644 --- a/screens/Donation/ProgressSection.tsx +++ b/screens/Donation/ProgressSection.tsx @@ -1,17 +1,27 @@ -import { ProgressCustom, Spacing, Grid, TextCustom } from "@/components"; +import { + ClickableCustom, + Grid, + ProgressCustom, + Spacing, + TextCustom, +} from "@/components"; import { MainColor } from "@/constants/color-palet"; import { ICON_SIZE_MEDIUM } from "@/constants/constans-value"; import { Ionicons, MaterialIcons } from "@expo/vector-icons"; +import { router } from "expo-router"; import { View } from "react-native"; -export default function Donation_ProgressSection() { - return ( - <> - - - - - +export default function Donation_ProgressSection({ id }: { id: string }) { + return ( + <> + + + + + + router.push(`/donation/${id}/list-of-donatur`)} + > Donatur - - + + + router.push(`/donation/${id}/(news)/list-of-news`)} > Kabar Terbaru - - + + + + router.push(`/donation/${id}/fund-disbursement`)} + > Pencairan Dana - - - - - ); -} \ No newline at end of file + + + + + + ); +}