FIX: lint

This commit is contained in:
Marcos Rodriguez Velez 2024-07-06 20:21:29 -04:00
parent 112fb9c8ae
commit c646b0e07b
No known key found for this signature in database
GPG key ID: 6030B2F48CCE86D7
2 changed files with 6 additions and 9 deletions

View file

@ -64,17 +64,14 @@ const ScanLndInvoice = () => {
}); });
useEffect(() => { useEffect(() => {
const showSubscription = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow', _keyboardDidShow, const showSubscription = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow', _keyboardDidShow);
); const hideSubscription = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide', _keyboardDidHide);
const hideSubscription = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide', _keyboardDidHide,
);
return () => { return () => {
showSubscription.remove(); showSubscription.remove();
hideSubscription.remove(); hideSubscription.remove();
}; };
}, []); }, []);
useEffect(() => { useEffect(() => {
if (walletID && wallet?.getID() !== walletID) { if (walletID && wallet?.getID() !== walletID) {
setWallet(wallets.find(w => w.getID() === walletID)); setWallet(wallets.find(w => w.getID() === walletID));

View file

@ -60,19 +60,19 @@ const WalletsImport = () => {
useEffect(() => { useEffect(() => {
enableBlur(); 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 () => { return () => {
showSubscription.remove(); showSubscription.remove();
hideSubscription.remove(); hideSubscription.remove();
disableBlur(); disableBlur();
}; };
}, [disableBlur, enableBlur]); }, [disableBlur, enableBlur]);
useEffect(() => { useEffect(() => {
if (triggerImport) importButtonPressed(); if (triggerImport) importButtonPressed();
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps