Skip to content

Commit

Permalink
feat: on click confirm get sent to main tab
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsebn committed Oct 8, 2023
1 parent cdc33a0 commit daf3742
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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);
Expand Down Expand Up @@ -146,6 +146,7 @@ export const BookmarkLanding = () => {
<DefaultTransactionButton
text={t('button.confirm')}
disabled={!isValidAddressOrENS}
onClick={() => navigate(navigationRoutes.home)}
/>
</PageContainer>
);
Expand Down

0 comments on commit daf3742

Please sign in to comment.