Update name in props

This commit is contained in:
Mati Dastugue 2020-07-03 14:48:18 -03:00 committed by GitHub
parent b9e8bcc179
commit 72a13f8c74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import { styles } from 'src/routes/safe/components/Balances/SendModal/screens/Co
const useStyles = makeStyles(styles)
export interface AddressBookInputProps {
export interface EthAddressInputProps {
isContract?: boolean
isRequired?: boolean
name: string
@ -32,7 +32,7 @@ const EthAddressInput = ({
name,
onScannedValue,
text,
}: AddressBookInputProps) => {
}: EthAddressInputProps) => {
const classes = useStyles()
const validatorsList = [isRequired && required, mustBeEthereumAddress, isContract && mustBeEthereumContractAddress]
const validate = composeValidators(...validatorsList.filter((_) => _))