Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Common/EnhancedInputs.js
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | const CurrencySelect = ( | ||||
</Select> | </Select> | ||||
); | ); | ||||
return ( | return ( | ||||
<Form.Item {...otherProps}> | <Form.Item {...otherProps}> | ||||
<Input.Group compact> | <Input.Group compact> | ||||
<Input | <Input | ||||
style={{ width: '60%', textAlign: 'left' }} | style={{ width: '60%', textAlign: 'left' }} | ||||
type="number" | type="number" | ||||
step={currency.dust} | step={ | ||||
inputProps.dollar === 1 | |||||
? 0.01 | |||||
: 1 / 10 ** currency.cashDecimals | |||||
} | |||||
prefix={ | prefix={ | ||||
inputProps.dollar === 1 ? ( | inputProps.dollar === 1 ? ( | ||||
<DollarOutlined /> | <DollarOutlined /> | ||||
) : ( | ) : ( | ||||
<img | <img | ||||
src={currency.logo} | src={currency.logo} | ||||
alt="" | alt="" | ||||
width={16} | width={16} | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |