From 3e3a57cc785bc33a1b2cd90b082d8398628b0abf Mon Sep 17 00:00:00 2001 From: im-adithya Date: Wed, 4 Dec 2024 12:11:59 +0530 Subject: [PATCH] chore: change to pressable and fix toast link --- components/ToastConfig.tsx | 8 +------- pages/send/AddressBook.tsx | 6 +++--- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/components/ToastConfig.tsx b/components/ToastConfig.tsx index 606b3c8..fea7a80 100644 --- a/components/ToastConfig.tsx +++ b/components/ToastConfig.tsx @@ -1,7 +1,6 @@ import { Link } from "expo-router"; import { View } from "react-native"; import { ToastConfig } from "react-native-toast-message"; -import { useAppStore } from "~/lib/state/appStore"; import { CircleCheck, XCircle } from "./Icons"; import { Button } from "./ui/button"; import { Text } from "./ui/text"; @@ -35,18 +34,13 @@ export const toastConfig: ToastConfig = { ), connectionError: ({ text1, text2, hide }) => { - // eslint-disable-next-line react-hooks/rules-of-hooks - const selectedWalletId = useAppStore((store) => store.selectedWalletId); return ( {text1} - + diff --git a/pages/send/AddressBook.tsx b/pages/send/AddressBook.tsx index b81a656..c3f60e2 100644 --- a/pages/send/AddressBook.tsx +++ b/pages/send/AddressBook.tsx @@ -1,5 +1,5 @@ import { Link, router } from "expo-router"; -import { ScrollView, TouchableOpacity, View } from "react-native"; +import { Pressable, ScrollView, TouchableOpacity, View } from "react-native"; import { Trash2 } from "~/components/Icons"; import Screen from "~/components/Screen"; import { Button } from "~/components/ui/button"; @@ -21,7 +21,7 @@ export function AddressBook() { {addressBookEntries.length > 0 ? ( addressBookEntries.map((addressBookEntry, index) => ( - { router.dismissAll(); @@ -62,7 +62,7 @@ export function AddressBook() { - + )) ) : ( No entries yet.