- 안면인증 페이지 추가 (추후 목업으로 추가 작업 필요)
- 자금이체 : isFormValid(이체신청 Validation 추가[임시] 추가 작업 필요)
This commit is contained in:
@@ -13,14 +13,15 @@ import {
|
||||
} from '@/widgets/sub-layout/use-sub-layout';
|
||||
import { overlay } from 'overlay-kit';
|
||||
import { Dialog } from '@/shared/ui/dialogs/dialog';
|
||||
import { useStore } from '@/shared/model/store';
|
||||
|
||||
export const KeyInPaymentRequestPage = () => {
|
||||
const { navigate } = useNavigate();
|
||||
const location = useLocation();
|
||||
|
||||
const { mid: receivedMid } = location.state || {};
|
||||
const userMid = useStore.getState().UserStore.mid;
|
||||
|
||||
const [mid, setMid] = useState<string>(receivedMid || '');
|
||||
const [mid, setMid] = useState<string>(userMid || '');
|
||||
const [goodsName, setGoodsName] = useState<string>('');
|
||||
const [amount, setAmount] = useState<number>(0);
|
||||
const [buyerName, setBuyerName] = useState<string>('');
|
||||
@@ -115,7 +116,7 @@ export const KeyInPaymentRequestPage = () => {
|
||||
|
||||
const isValidCardNumber = () => {
|
||||
return cardNo1.length === 4 && cardNo2.length === 4 &&
|
||||
cardNo3.length === 4 && cardNo4.length === 4;
|
||||
cardNo3.length === 4 && cardNo4.length === 4;
|
||||
};
|
||||
|
||||
const isValidCardExpiration = () => {
|
||||
@@ -293,7 +294,7 @@ export const KeyInPaymentRequestPage = () => {
|
||||
|
||||
<div className="billing-row">
|
||||
<div className="billing-label">유효기간(월/년)<span>*</span></div>
|
||||
<div className="billing-field" style={{display: 'flex', gap: '8px', alignItems: 'center'}}>
|
||||
<div className="billing-field" style={{ display: 'flex', gap: '8px', alignItems: 'center' }}>
|
||||
<input
|
||||
type="text"
|
||||
value={cardExpirationMonth}
|
||||
@@ -305,7 +306,7 @@ export const KeyInPaymentRequestPage = () => {
|
||||
pattern="[0-9]*"
|
||||
maxLength={2}
|
||||
placeholder='MM'
|
||||
style={{flex: 1}}
|
||||
style={{ flex: 1 }}
|
||||
/>
|
||||
<span>/</span>
|
||||
<input
|
||||
@@ -319,7 +320,7 @@ export const KeyInPaymentRequestPage = () => {
|
||||
pattern="[0-9]*"
|
||||
maxLength={2}
|
||||
placeholder='YY'
|
||||
style={{flex: 1}}
|
||||
style={{ flex: 1 }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user