From daf3742ded128ac4246c2a87bfb6bcaf443af666 Mon Sep 17 00:00:00 2001 From: 0xsebn Date: Sat, 7 Oct 2023 20:23:43 -0600 Subject: [PATCH] feat: on click confirm get sent to main tab --- .../src/components/BookmarkLanding/BookmarkLanding.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/widget/src/components/BookmarkLanding/BookmarkLanding.tsx b/packages/widget/src/components/BookmarkLanding/BookmarkLanding.tsx index d5c102040..e5baf24e5 100644 --- a/packages/widget/src/components/BookmarkLanding/BookmarkLanding.tsx +++ b/packages/widget/src/components/BookmarkLanding/BookmarkLanding.tsx @@ -9,6 +9,7 @@ import { Card } from '../../components/Card'; import { FormKey, useWallet, useWidgetConfig } from '../../providers'; import { useSendToWalletStore, useSettings } from '../../stores'; import { DisabledUI, HiddenUI, RequiredUI } from '../../types'; +import { navigationRoutes } from '../../utils'; import { DefaultTransactionButton } from '../DefaultTransactionButton'; import { AlertSection, @@ -24,8 +25,7 @@ export const BookmarkLanding = () => { const { account } = useWallet(); const navigate = useNavigate(); const { disabledUI, hiddenUI, requiredUI, toAddress } = useWidgetConfig(); - const { showSendToWallet, showSendToWalletDirty, setSendToWallet } = - useSendToWalletStore(); + const { showSendToWalletDirty, setSendToWallet } = useSendToWalletStore(); const { showDestinationWallet } = useSettings(['showDestinationWallet']); const hiddenToAddress = hiddenUI?.includes(HiddenUI.ToAddress); @@ -146,6 +146,7 @@ export const BookmarkLanding = () => { navigate(navigationRoutes.home)} /> );