Merge pull request #2533 from BlueWallet/walletselect

Update selectWallet.js
This commit is contained in:
GLaDOS 2021-01-27 13:46:47 +00:00 committed by GitHub
commit ee59464694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ import loc, { formatBalance, transactionTimeToReadable } from '../../loc';
import { MultisigHDWallet } from '../../class';
import { BlueStorageContext } from '../../blue_modules/storage-context';
const SelectWallet = ({ navigation }) => {
const SelectWallet = () => {
const { chainType, onWalletSelect, availableWallets } = useRoute().params;
const [isLoading, setIsLoading] = useState(true);
const { wallets } = useContext(BlueStorageContext);
@ -101,7 +101,7 @@ const SelectWallet = ({ navigation }) => {
<TouchableOpacity
onPress={() => {
ReactNativeHapticFeedback.trigger('selection', { ignoreAndroidSystemSettings: false });
onWalletSelect(item, { navigation });
onWalletSelect(item);
}}
>
<View shadowOpacity={40 / 100} shadowOffset={{ width: 0, height: 0 }} shadowRadius={5} style={styles.itemRoot}>