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