mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-20 05:28:08 +00:00
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 {
|
export interface AddressBookProps {
|
||||||
classes: any
|
classes: any
|
||||||
fieldMutator
|
fieldMutator: (address: string) => void
|
||||||
isCustomTx: boolean
|
isCustomTx?: boolean
|
||||||
pristine: boolean
|
pristine: boolean
|
||||||
recipientAddress: string
|
recipientAddress?: string
|
||||||
setIsValidAddress: string
|
setSelectedEntry: (entry?: any) => void
|
||||||
setSelectedEntry: string
|
setIsValidAddress: (valid?: boolean) => void
|
||||||
onScannedValue: (scannedValue: string) => void
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const textFieldLabelStyle = makeStyles(() => ({
|
const textFieldLabelStyle = makeStyles(() => ({
|
||||||
@ -60,7 +59,7 @@ const AddressBookInput = ({
|
|||||||
recipientAddress,
|
recipientAddress,
|
||||||
setIsValidAddress,
|
setIsValidAddress,
|
||||||
setSelectedEntry,
|
setSelectedEntry,
|
||||||
}: any) => {
|
}: AddressBookProps) => {
|
||||||
const addressBook = useSelector(getAddressBookListSelector)
|
const addressBook = useSelector(getAddressBookListSelector)
|
||||||
const [isValidForm, setIsValidForm] = useState(true)
|
const [isValidForm, setIsValidForm] = useState(true)
|
||||||
const [validationText, setValidationText] = useState<any>('')
|
const [validationText, setValidationText] = useState<any>('')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user