mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
Update hooks/useMenuElements.ios.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
95de8d56f5
commit
f069800895
@ -36,8 +36,14 @@ const useMenuElements = () => {
|
|||||||
addWallet: () => dispatchNavigate('AddWalletRoot'),
|
addWallet: () => dispatchNavigate('AddWalletRoot'),
|
||||||
importWallet: () => dispatchNavigate('AddWalletRoot', 'ImportWallet'),
|
importWallet: () => dispatchNavigate('AddWalletRoot', 'ImportWallet'),
|
||||||
reloadTransactions: () => {
|
reloadTransactions: () => {
|
||||||
console.debug('Calling reloadTransactionsMenuActionFunction:', reloadTransactionsMenuActionRef.current);
|
if (__DEV__) {
|
||||||
reloadTransactionsMenuActionRef.current();
|
console.debug('Calling reloadTransactionsMenuActionFunction');
|
||||||
|
}
|
||||||
|
if (reloadTransactionsMenuActionRef.current) {
|
||||||
|
reloadTransactionsMenuActionRef.current();
|
||||||
|
} else {
|
||||||
|
console.warn('No reload function set for reloadTransactions menu action');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
[dispatchNavigate],
|
[dispatchNavigate],
|
||||||
|
Loading…
Reference in New Issue
Block a user