diff --git a/shared/components/token-to-wallet/token-to-wallet.tsx b/shared/components/token-to-wallet/token-to-wallet.tsx index 4827d3b90..b1bbf4857 100644 --- a/shared/components/token-to-wallet/token-to-wallet.tsx +++ b/shared/components/token-to-wallet/token-to-wallet.tsx @@ -1,4 +1,4 @@ -import { Tooltip } from '@lidofinance/lido-ui'; +import { ToastInfo, Tooltip } from '@lidofinance/lido-ui'; import { useTokenToWallet } from '@lido-sdk/react'; import { TokenToWalletStyle } from './styles'; @@ -12,9 +12,16 @@ export const TokenToWallet: TokenToWalletComponent = (props) => { if (!addToken) return null; + const onClickHandler = async () => { + const result = await addToken(); + if (!result) return; + + ToastInfo('Tokens were successfully added to your wallet', {}); + }; + return ( - + ); };