가상계좌 은행코드 추가
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { useStore } from "@/shared/model/store";
|
||||
import { ChangeEvent, useState } from "react";
|
||||
|
||||
export interface AllTransactionCancelSectionBankGroupProps {
|
||||
@@ -16,7 +17,9 @@ export const AllTransactionCancelSectionBankGroup = ({
|
||||
accountHolder,
|
||||
setAccountHolder
|
||||
}: AllTransactionCancelSectionBankGroupProps ) => {
|
||||
|
||||
let bankList = useStore.getState().CommonStore.virtualBankList;
|
||||
bankList = bankList.filter((value, index) => value.code1 !== '****');
|
||||
|
||||
const [newBankCode, setNewBankCode] = useState<string | undefined>(bankCode);
|
||||
const [newAccountNo, setNewAccountNo] = useState<string | undefined>(accountNo);
|
||||
const [newAccountHolder, setNewAccountHolder] = useState<string | undefined>(accountHolder);
|
||||
@@ -42,8 +45,10 @@ export const AllTransactionCancelSectionBankGroup = ({
|
||||
onChange={ (e: ChangeEvent<HTMLSelectElement>) => onChangeNewBankCode(e.target.value) }
|
||||
>
|
||||
<option value="">선택</option>
|
||||
<option>KB국민은행</option>
|
||||
<option>22323213123</option>
|
||||
{ bankList.map((value, index) => (
|
||||
<option value={ value.code1 }>{ value.desc1 }</option>
|
||||
))
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user