Update name in props
This commit is contained in:
parent
b9e8bcc179
commit
72a13f8c74
|
@ -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((_) => _))
|
||||
|
|
Loading…
Reference in New Issue