Add types for Address book suggestion
This commit is contained in:
parent
cf2fd4522c
commit
79fbc2a54b
|
@ -16,13 +16,12 @@ import { isValidEnsName } from 'src/logic/wallets/ethAddresses'
|
|||
|
||||
export interface AddressBookProps {
|
||||
classes: any
|
||||
fieldMutator
|
||||
isCustomTx: boolean
|
||||
fieldMutator: (address: string) => void
|
||||
isCustomTx?: boolean
|
||||
pristine: boolean
|
||||
recipientAddress: string
|
||||
setIsValidAddress: string
|
||||
setSelectedEntry: string
|
||||
onScannedValue: (scannedValue: string) => void
|
||||
recipientAddress?: string
|
||||
setSelectedEntry: (entry?: any) => void
|
||||
setIsValidAddress: (valid?: boolean) => void
|
||||
}
|
||||
|
||||
const textFieldLabelStyle = makeStyles(() => ({
|
||||
|
@ -60,7 +59,7 @@ const AddressBookInput = ({
|
|||
recipientAddress,
|
||||
setIsValidAddress,
|
||||
setSelectedEntry,
|
||||
}: any) => {
|
||||
}: AddressBookProps) => {
|
||||
const addressBook = useSelector(getAddressBookListSelector)
|
||||
const [isValidForm, setIsValidForm] = useState(true)
|
||||
const [validationText, setValidationText] = useState<any>('')
|
||||
|
|
Loading…
Reference in New Issue