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)
|
const useStyles = makeStyles(styles)
|
||||||
|
|
||||||
export interface AddressBookInputProps {
|
export interface EthAddressInputProps {
|
||||||
isContract?: boolean
|
isContract?: boolean
|
||||||
isRequired?: boolean
|
isRequired?: boolean
|
||||||
name: string
|
name: string
|
||||||
|
@ -32,7 +32,7 @@ const EthAddressInput = ({
|
||||||
name,
|
name,
|
||||||
onScannedValue,
|
onScannedValue,
|
||||||
text,
|
text,
|
||||||
}: AddressBookInputProps) => {
|
}: EthAddressInputProps) => {
|
||||||
const classes = useStyles()
|
const classes = useStyles()
|
||||||
const validatorsList = [isRequired && required, mustBeEthereumAddress, isContract && mustBeEthereumContractAddress]
|
const validatorsList = [isRequired && required, mustBeEthereumAddress, isContract && mustBeEthereumContractAddress]
|
||||||
const validate = composeValidators(...validatorsList.filter((_) => _))
|
const validate = composeValidators(...validatorsList.filter((_) => _))
|
||||||
|
|
Loading…
Reference in New Issue