From 56cfbd5896e5c279818832f264a1d99b22a22b19 Mon Sep 17 00:00:00 2001 From: overtorment Date: Fri, 17 May 2024 18:00:40 +0100 Subject: [PATCH] FIX: tooltip menu in contact list --- screen/wallets/paymentCodesList.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/screen/wallets/paymentCodesList.tsx b/screen/wallets/paymentCodesList.tsx index af4ba42d5..c398ae400 100644 --- a/screen/wallets/paymentCodesList.tsx +++ b/screen/wallets/paymentCodesList.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react'; +import React, { useContext, useEffect, useMemo, useState } from 'react'; import { SectionList, StyleSheet, Text, View } from 'react-native'; import { useRoute } from '@react-navigation/native'; import { NativeStackScreenProps } from '@react-navigation/native-stack'; @@ -78,7 +78,6 @@ export default function PaymentCodesList() { const { wallets, txMetadata, counterpartyMetadata, saveToDisk } = useContext(BlueStorageContext); const [reload, setReload] = useState(0); const [data, setData] = useState([]); - const menuRef = useRef(); const { colors } = useTheme(); const [isLoading, setIsLoading] = useState(false); const [loadingText, setLoadingText] = useState('Loading...'); @@ -126,11 +125,6 @@ export default function PaymentCodesList() { } }; - const onPress = useCallback(async () => { - // @ts-ignore: idk how to fix - menuRef?.current?.dismissMenu?.(); - }, []); - const renderItem = (pc: string) => { const color = createHash('sha256').update(pc).digest().toString('hex').substring(0, 6); @@ -139,10 +133,8 @@ export default function PaymentCodesList() { return ( onToolTipPress(item, pc)} - onPress={onPress} isButton={true} isMenuPrimaryAction={true} >