diff --git a/app/(application)/(user)/investment/(tabs)/my-holding.tsx b/app/(application)/(user)/investment/(tabs)/my-holding.tsx index 7937ec4..9433185 100644 --- a/app/(application)/(user)/investment/(tabs)/my-holding.tsx +++ b/app/(application)/(user)/investment/(tabs)/my-holding.tsx @@ -1,11 +1,49 @@ -import { ViewWrapper, TextCustom } from "@/components"; +import { + BaseBox, + Grid, + ProgressCustom, + Spacing, + StackCustom, + TextCustom, + ViewWrapper, +} from "@/components"; +import { View } from "react-native"; export default function InvestmentMyHolding() { return ( - - - My Holding - + + {Array.from({ length: 10 }).map((_, index) => ( + + + + + + Title here : Lorem ipsum dolor sit amet consectetur + adipisicing elit. Omnis, exercitationem, sequi enim quod + distinctio maiores laudantium amet, quidem atque repellat sit + vitae qui aliquam est veritatis laborum eum voluptatum totam! + + + + Rp. 7.500.000 + 300 Lembar + + + + + + + + + + + ))} ); } diff --git a/app/(application)/(user)/investment/(tabs)/portofolio.tsx b/app/(application)/(user)/investment/(tabs)/portofolio.tsx index a09b2aa..d54e637 100644 --- a/app/(application)/(user)/investment/(tabs)/portofolio.tsx +++ b/app/(application)/(user)/investment/(tabs)/portofolio.tsx @@ -1,11 +1,70 @@ -import { ViewWrapper, TextCustom } from "@/components"; +import { + BaseBox, + Grid, + ScrollableCustom, + Spacing, + TextCustom, + ViewWrapper +} from "@/components"; +import DUMMY_IMAGE from "@/constants/dummy-image-value"; +import { masterStatus } from "@/lib/dummy-data/_master/status"; +import { Image } from "expo-image"; +import { useState } from "react"; +import { View } from "react-native"; export default function InvestmentPortofolio() { + const [activeCategory, setActiveCategory] = useState( + "publish" + ); + + const handlePress = (item: any) => { + setActiveCategory(item.value); + // tambahkan logika lain seperti filter dsb. + }; + + const scrollComponent = ( + ({ + id: i, + label: e.label, + value: e.value, + }))} + onButtonPress={handlePress} + activeId={activeCategory as any} + /> + ); return ( - - - Portofolio - + + {Array.from({ length: 10 }).map((_, index) => ( + + + + + Title here : {activeCategory} Lorem ipsum dolor sit amet consectetur adipisicing + elit. Omnis, exercitationem, sequi enim quod distinctio maiores + laudantium amet, quidem atque repellat sit vitae qui aliquam est + veritatis laborum eum voluptatum totam! + + + + + + Target Dana: + + Rp. {index + 1 % 3/4 * 1004000} + + + + + + + + + + ))} ); } diff --git a/app/(application)/(user)/investment/(tabs)/transaction.tsx b/app/(application)/(user)/investment/(tabs)/transaction.tsx index a2cc7a0..c5688b9 100644 --- a/app/(application)/(user)/investment/(tabs)/transaction.tsx +++ b/app/(application)/(user)/investment/(tabs)/transaction.tsx @@ -1,11 +1,53 @@ -import { ViewWrapper, TextCustom } from "@/components"; +import { + BadgeCustom, + BaseBox, + Grid, + StackCustom, + TextCustom, + ViewWrapper, +} from "@/components"; +import { GStyles } from "@/styles/global-styles"; +import dayjs from "dayjs"; +import { View } from "react-native"; export default function InvestmentTransaction() { return ( - - - Transaction - + + {Array.from({ length: 10 }).map((_, i) => ( + + + + + + Title Investment: Lorem ipsum dolor sit amet consectetur + adipisicing elit. Am culpa excepturi deleniti soluta animi + porro amet ducimus. + + + {dayjs().format("DD/MM/YYYY")} + + + + + + + + + + Rp. 7.500.000 + + + Berhasil + + + + + + ))} ); } diff --git a/styles/global-styles.ts b/styles/global-styles.ts index e017618..be0af4b 100644 --- a/styles/global-styles.ts +++ b/styles/global-styles.ts @@ -320,4 +320,7 @@ export const GStyles = StyleSheet.create({ alignSelfCenter: { alignSelf: "center", }, + alignSelfFlexEnd: { + alignSelf: "flex-end", + }, });