Skip to content

Commit

Permalink
migrate AmountField to TextInput
Browse files Browse the repository at this point in the history
  • Loading branch information
wolverineks committed Sep 26, 2021
1 parent 0a34b05 commit 0874b49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Send/AmountField.js
Expand Up @@ -3,7 +3,7 @@
import React from 'react'
import {defineMessages, useIntl} from 'react-intl'

import {ValidatedTextInput} from '../UiKit'
import {TextInput} from '../UiKit'
import {editedFormatter, pastedFormatter} from './amountUtils'

export const messages = defineMessages({
Expand Down Expand Up @@ -34,13 +34,13 @@ const AmountField = ({amount, error, editable, setAmount}: Props) => {
}

return (
<ValidatedTextInput
<TextInput
returnKeyType="done"
keyboardType="numeric"
label={intl.formatMessage(messages.label)}
value={amount}
onChangeText={handleSetAmount}
error={error}
errorText={error || undefined}
editable={editable != null ? editable : true}
/>
)
Expand Down

0 comments on commit 0874b49

Please sign in to comment.