Add - _master/status-transaction.ts - investment/[id]/(transaction-flow)/success.tsx - investment/[id]/(transaction-flow)/failed.tsx Fix: - lib/dummy-data/_master/status.tsx Component: - components/Badge/BadgeCustom.tsx: Penambahan custom color ## No Issue
85 lines
1.9 KiB
TypeScript
85 lines
1.9 KiB
TypeScript
import {
|
|
BaseBox,
|
|
Grid,
|
|
Spacing,
|
|
StackCustom,
|
|
TextCustom,
|
|
ViewWrapper,
|
|
} from "@/components";
|
|
import { MainColor } from "@/constants/color-palet";
|
|
import { GStyles } from "@/styles/global-styles";
|
|
import { FontAwesome6 } from "@expo/vector-icons";
|
|
|
|
export default function InvestmentSuccess() {
|
|
return (
|
|
<ViewWrapper>
|
|
<StackCustom>
|
|
<BaseBox>
|
|
<StackCustom>
|
|
<FontAwesome6
|
|
name="money-bill-wave"
|
|
size={100}
|
|
color={MainColor.green}
|
|
style={GStyles.alignSelfCenter}
|
|
/>
|
|
|
|
<TextCustom bold align="center">
|
|
Terimakasih telah percaya pada kami untuk mengelola dana anda!
|
|
Info mengenai update Investasi ini bisa di lihat di kolom berita.
|
|
</TextCustom>
|
|
</StackCustom>
|
|
</BaseBox>
|
|
|
|
<BaseBox>
|
|
<TextCustom bold align="center" size="large">
|
|
Detail Transaksi
|
|
</TextCustom>
|
|
|
|
<Spacing/>
|
|
|
|
|
|
<StackCustom>
|
|
{listData.map((item, i) => (
|
|
<Grid key={i}>
|
|
<Grid.Col span={5}>
|
|
<TextCustom bold>{item.label}</TextCustom>
|
|
</Grid.Col>
|
|
<Grid.Col span={7}>
|
|
<TextCustom style={{paddingLeft: 10}}>{item.value}</TextCustom>
|
|
</Grid.Col>
|
|
</Grid>
|
|
))}
|
|
</StackCustom>
|
|
</BaseBox>
|
|
</StackCustom>
|
|
</ViewWrapper>
|
|
);
|
|
}
|
|
|
|
const listData = [
|
|
{
|
|
label: "Bank",
|
|
value: " BCA",
|
|
},
|
|
{
|
|
label: "Rekening Penerima",
|
|
value: "Himpunan Pengusaha Muda Indonesia",
|
|
},
|
|
{
|
|
label: "No Rekening",
|
|
value: "2304235678854332",
|
|
},
|
|
{
|
|
label: "Jumlah",
|
|
value: "Rp. 1.000.000",
|
|
},
|
|
{
|
|
label: "Tanggal",
|
|
value: "2022-01-01",
|
|
},
|
|
{
|
|
label: "Lembar Terbeli",
|
|
value: "100",
|
|
},
|
|
];
|