Skip to content

Commit

Permalink
add address book autocomplete to nft transfer dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ronanlong committed Jul 21, 2023
1 parent cf0df60 commit 7fb3919
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/gui/src/components/nfts/NFTTransferAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import {
FeeTxType,
Form,
Flex,
TextField,
chiaToMojo,
useCurrencyCode,
useOpenDialog,
validAddress,
useShowError,
} from '@chia-network/core';
import { AddressBookAutocomplete } from '@chia-network/wallets';
import { Trans } from '@lingui/macro';
import { Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Typography } from '@mui/material';
import React from 'react';
Expand Down Expand Up @@ -142,14 +142,13 @@ export default function NFTTransferAction(props: NFTTransferActionProps) {
<Form methods={methods} onSubmit={handleSubmit}>
<Flex flexDirection="column" gap={3}>
{renderNFTPreview()}
<TextField
<AddressBookAutocomplete
name="destination"
getType="address"
freeSolo
variant="filled"
color="secondary"
fullWidth
label={<Trans>Send to Address</Trans>}
disabled={isTransferNFTLoading}
required
disabled={isTransferNFTLoading}
/>
<EstimatedFee
id="filled-secondary"
Expand Down

0 comments on commit 7fb3919

Please sign in to comment.