From c646b0e07b6c676e957542a36ddca5434f571132 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Sat, 6 Jul 2024 20:21:29 -0400 Subject: [PATCH] FIX: lint --- screen/lnd/scanLndInvoice.js | 7 ++----- screen/wallets/import.js | 8 ++++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/screen/lnd/scanLndInvoice.js b/screen/lnd/scanLndInvoice.js index c993272b7..2fb9fcbc3 100644 --- a/screen/lnd/scanLndInvoice.js +++ b/screen/lnd/scanLndInvoice.js @@ -64,17 +64,14 @@ const ScanLndInvoice = () => { }); useEffect(() => { - const showSubscription = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow', _keyboardDidShow, - ); - const hideSubscription = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide', _keyboardDidHide, - ); + const showSubscription = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow', _keyboardDidShow); + const hideSubscription = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide', _keyboardDidHide); return () => { showSubscription.remove(); hideSubscription.remove(); }; }, []); - useEffect(() => { if (walletID && wallet?.getID() !== walletID) { setWallet(wallets.find(w => w.getID() === walletID)); diff --git a/screen/wallets/import.js b/screen/wallets/import.js index c9cb4abf7..442a2aa2f 100644 --- a/screen/wallets/import.js +++ b/screen/wallets/import.js @@ -60,19 +60,19 @@ const WalletsImport = () => { useEffect(() => { enableBlur(); - const showSubscription = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow', () => setIsToolbarVisibleForAndroid(true), + const showSubscription = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow', () => + setIsToolbarVisibleForAndroid(true), ); - const hideSubscription = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide', () => setIsToolbarVisibleForAndroid(false), + const hideSubscription = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide', () => + setIsToolbarVisibleForAndroid(false), ); return () => { showSubscription.remove(); hideSubscription.remove(); disableBlur(); - }; }, [disableBlur, enableBlur]); - useEffect(() => { if (triggerImport) importButtonPressed(); // eslint-disable-next-line react-hooks/exhaustive-deps