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
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import {
|
|
BaseBox,
|
|
BoxButtonOnFooter,
|
|
ButtonCustom,
|
|
ViewWrapper,
|
|
} from "@/components";
|
|
import { RadioCustom, RadioGroup } from "@/components/Radio/RadioCustom";
|
|
import { dummyMasterBank } from "@/lib/dummy-data/_master/bank";
|
|
import { router, useLocalSearchParams } from "expo-router";
|
|
import { useState } from "react";
|
|
|
|
export default function InvestmentSelectBank() {
|
|
const { id } = useLocalSearchParams();
|
|
const [value, setValue] = useState<any | number>("");
|
|
|
|
const buttonSubmit = () => {
|
|
return (
|
|
<>
|
|
<BoxButtonOnFooter>
|
|
<ButtonCustom
|
|
onPress={() => router.replace(`/investment/${id}/invoice`)}
|
|
>
|
|
Pilih
|
|
</ButtonCustom>
|
|
</BoxButtonOnFooter>
|
|
</>
|
|
);
|
|
};
|
|
return (
|
|
<ViewWrapper footerComponent={buttonSubmit()}>
|
|
<RadioGroup value={value} onChange={setValue}>
|
|
{dummyMasterBank.map((item) => (
|
|
<BaseBox key={item.name}>
|
|
<RadioCustom label={item.name} value={item.code} />
|
|
</BaseBox>
|
|
))}
|
|
</RadioGroup>
|
|
</ViewWrapper>
|
|
);
|
|
}
|