wip : changes in quick pay
This commit is contained in:
@@ -150,7 +150,7 @@ export default function QuickPay() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
async function handleProceed() {
|
async function handleProceed() {
|
||||||
if (!selectedAccNo || !beneficiaryAcc || !confirmBeneficiaryAcc || !beneficiaryType || !amount || !remarks) {
|
if (!selectedAccNo || !beneficiaryAcc || !confirmBeneficiaryAcc || !beneficiaryType || !amount ) {
|
||||||
notifications.show({
|
notifications.show({
|
||||||
title: "Validation Error",
|
title: "Validation Error",
|
||||||
message: "Please fill all required fields",
|
message: "Please fill all required fields",
|
||||||
@@ -258,6 +258,17 @@ export default function QuickPay() {
|
|||||||
color: "red",
|
color: "red",
|
||||||
});
|
});
|
||||||
} finally {
|
} finally {
|
||||||
|
setSelectedAccNo(null);
|
||||||
|
setBeneficiaryAcc('');
|
||||||
|
setBeneficiaryName('');
|
||||||
|
setConfirmBeneficiaryAcc('');
|
||||||
|
setBeneficiaryType(null);
|
||||||
|
setAmount('');
|
||||||
|
setRemarks('');
|
||||||
|
setIsVisibilityLocked(false);
|
||||||
|
setIsSubmitting(false);
|
||||||
|
setShowTxnPassword(false);
|
||||||
|
setShowOtpField(false);
|
||||||
setIsSubmitting(false);
|
setIsSubmitting(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -401,7 +412,7 @@ export default function QuickPay() {
|
|||||||
placeholder="Enter remarks"
|
placeholder="Enter remarks"
|
||||||
value={remarks}
|
value={remarks}
|
||||||
onChange={(e) => setRemarks(e.currentTarget.value)}
|
onChange={(e) => setRemarks(e.currentTarget.value)}
|
||||||
withAsterisk
|
// withAsterisk
|
||||||
readOnly={showOtpField}
|
readOnly={showOtpField}
|
||||||
/>
|
/>
|
||||||
</Group>
|
</Group>
|
||||||
|
@@ -14,7 +14,7 @@ interface accountData {
|
|||||||
custname: string;
|
custname: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const MockBeneficiaryData =
|
export const MockBeneficiaryData =
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
'stBankName': 'Kangra Central Co-operative Bank',
|
'stBankName': 'Kangra Central Co-operative Bank',
|
||||||
@@ -26,6 +26,11 @@ interface accountData {
|
|||||||
'stBenAccountNo': '50077742351',
|
'stBenAccountNo': '50077742351',
|
||||||
'stBenName': 'RAJAT MAHARANA',
|
'stBenName': 'RAJAT MAHARANA',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'stBankName': 'Kangra Central Co-operative Bank',
|
||||||
|
'stBenAccountNo': '20002076570',
|
||||||
|
'stBenName': 'Mr. PUSHKAR . SHARMA',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'stBankName': 'State Bank of India',
|
'stBankName': 'State Bank of India',
|
||||||
'stBenAccountNo': '50077742361',
|
'stBenAccountNo': '50077742361',
|
||||||
@@ -406,7 +411,7 @@ export default function SendToBeneficiaryOwn() {
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div>
|
<div>
|
||||||
<SendToBeneficiaryOthers/>
|
<SendToBeneficiaryOthers />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</Paper>
|
</Paper>
|
||||||
|
Reference in New Issue
Block a user