From 529b234b756dbe3e9c9ac006a33ddf61584b2c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Landabaso=20D=C3=ADaz?= Date: Fri, 25 Oct 2024 11:06:16 +0200 Subject: [PATCH] Refactor input handling for Electrum URI, remove unused callback --- app/index.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/index.tsx b/app/index.tsx index cee1669..36b2873 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -1,5 +1,5 @@ import { useCallback, useState } from "react"; -import { ScrollView, Text, TextInput, View, ViewBase } from "react-native"; +import { ScrollView, Text, TextInput, View } from "react-native"; import { networks } from "bitcoinjs-lib"; const network = networks.bitcoin; @@ -52,12 +52,6 @@ export default function Home() { setDiscovery(null); }, [discovery]); - const onChangeElectrumURI = useCallback(async (electrumURI: string) => { - setElectrumURI(electrumURI); - try { - } catch (err) {} - }, []); - const fetch = useCallback(async () => { if (discovery) { setFetching(true); @@ -89,7 +83,7 @@ export default function Home() { Enter your Electrum node URI: