|
@ -5,7 +5,6 @@ import { translate } from 'react-i18next' |
|
|
import Box from 'components/base/Box' |
|
|
import Box from 'components/base/Box' |
|
|
import Input from 'components/base/Input' |
|
|
import Input from 'components/base/Input' |
|
|
import Label from 'components/base/Label' |
|
|
import Label from 'components/base/Label' |
|
|
import Spoiler from 'components/base/Spoiler' |
|
|
|
|
|
|
|
|
|
|
|
type Props = { |
|
|
type Props = { |
|
|
tag: ?number, |
|
|
tag: ?number, |
|
@ -14,23 +13,19 @@ type Props = { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export default translate()(({ tag, onChangeTag, t }: Props) => ( |
|
|
export default translate()(({ tag, onChangeTag, t }: Props) => ( |
|
|
<Spoiler title={t('app:send.steps.amount.advancedOptions')}> |
|
|
<Box vertical flow={5}> |
|
|
<Box horizontal align="center" flow={5}> |
|
|
<Box grow> |
|
|
<Box style={{ width: 200 }}> |
|
|
<Label> |
|
|
<Label> |
|
|
<span>{t('app:send.steps.amount.rippleTag')}</span> |
|
|
<span>{t('app:send.steps.amount.rippleTag')}</span> |
|
|
</Label> |
|
|
</Label> |
|
|
<Input |
|
|
</Box> |
|
|
value={String(tag || '')} |
|
|
<Box grow> |
|
|
onChange={str => { |
|
|
<Input |
|
|
const tag = parseInt(str, 10) |
|
|
value={String(tag || '')} |
|
|
if (!isNaN(tag) && isFinite(tag)) onChangeTag(tag) |
|
|
onChange={str => { |
|
|
else onChangeTag(undefined) |
|
|
const tag = parseInt(str, 10) |
|
|
}} |
|
|
if (!isNaN(tag) && isFinite(tag)) onChangeTag(tag) |
|
|
/> |
|
|
else onChangeTag(undefined) |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
</Box> |
|
|
|
|
|
</Box> |
|
|
</Box> |
|
|
</Spoiler> |
|
|
</Box> |
|
|
)) |
|
|
)) |
|
|