Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Common/EnhancedInputs.js
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | export const FormItemWithQRCodeAddon = ({ | ||||
loadWithCameraOpen, | loadWithCameraOpen, | ||||
inputProps, | inputProps, | ||||
...otherProps | ...otherProps | ||||
}) => { | }) => { | ||||
return ( | return ( | ||||
<Form.Item {...otherProps}> | <Form.Item {...otherProps}> | ||||
<Input | <Input | ||||
prefix={<WalletOutlined />} | prefix={<WalletOutlined />} | ||||
autoComplete="off" | |||||
addonAfter={ | addonAfter={ | ||||
<ScanQRCode | <ScanQRCode | ||||
loadWithCameraOpen={loadWithCameraOpen} | loadWithCameraOpen={loadWithCameraOpen} | ||||
onScan={onScan} | onScan={onScan} | ||||
/> | /> | ||||
} | } | ||||
{...inputProps} | {...inputProps} | ||||
/> | /> | ||||
Show All 23 Lines |