@opexa/portal-components 0.0.1118 → 0.0.1119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -231,7 +231,11 @@ export function VentajaWithdrawal() {
|
|
|
231
231
|
o.field.onChange(details.value.at(0) ?? '');
|
|
232
232
|
}, children: [_jsx(Select.Label, { children: "Bank" }), _jsx(Select.Control, { children: _jsxs(Select.Trigger, { children: [_jsx(Select.ValueText, {}), _jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })] }) }), _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: _jsx(Select.ItemGroup, { children: bankCollection.items.map((item) => (_jsxs(Select.Item, { item: item, children: [_jsx(Select.ItemText, { children: item.name }), _jsx(Select.ItemIndicator, { asChild: true, children: _jsx(CheckIcon, {}) })] }, item.code))) }) }) })] }), _jsx(Field.ErrorText, { children: form.formState.errors.bankCode?.message })] })) }), _jsxs(Field.Root, { invalid: !!form.formState.errors.accountName, className: "mt-3xl", children: [_jsx(Field.Label, { children: "Account Name" }), _jsx(Field.Input, { ...form.register('accountName') }), _jsx(Field.ErrorText, { children: form.formState.errors.accountName?.message })] })] })), _jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, className: "mt-3xl", children: [_jsx(Field.Label, { children: paymentMethod === 'INSTAPAY'
|
|
233
233
|
? 'Bank account number'
|
|
234
|
-
: 'Phone Number' }), _jsx(Field.Input, { type: "
|
|
234
|
+
: 'Phone Number' }), _jsx(Field.Input, { type: "text", inputMode: "numeric", pattern: "[0-9]*", ...form.register('accountNumber', {
|
|
235
|
+
onChange: (e) => {
|
|
236
|
+
e.target.value = e.target.value.replace(/\D/g, '');
|
|
237
|
+
},
|
|
238
|
+
}), onKeyDown: (e) => {
|
|
235
239
|
if (['e', 'E', '.', '-', '+', ','].includes(e.key)) {
|
|
236
240
|
e.preventDefault();
|
|
237
241
|
}
|