mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
FIX: lint
This commit is contained in:
parent
112fb9c8ae
commit
c646b0e07b
2 changed files with 6 additions and 9 deletions
|
@ -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));
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue