Add : - lib/dummy-data/_master/bank.ts - investment/[id]/(transaction-flow)/select-bank.tsx - /investment/[id]/(transaction-flow)/process.tsx - investment/[id]/(transaction-flow)/invoice.tsx ## No Issue
36 lines
1.1 KiB
TypeScript
36 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.push(`/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>
|
|
);
|
|
}
|