Skip to content

Commit

Permalink
fix: remove toast
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecarpini committed Oct 27, 2023
1 parent 9260a0f commit 69d9f37
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
Icon,
Spinner,
Text,
useToast,
VStack,
} from '@chakra-ui/react';
import { LinkIcon, WalletIcon } from '@heroicons/react/24/solid';
Expand Down Expand Up @@ -51,7 +50,6 @@ interface ConnectedWalletBodyProps {
const ConnectedWalletBody: React.FC<ConnectedWalletBodyProps> = ({
onClose,
}) => {
const toast = useToast();
const { setAccount } = useWallet();
const { vendor } = useConnex();

Expand Down Expand Up @@ -90,16 +88,8 @@ const ConnectedWalletBody: React.FC<ConnectedWalletBodyProps> = ({
(cert: Certificate): void => {
setAccount(cert.signer);
onClose();
toast({
title: 'Wallet connected.',
description: `You've succesfully connected with wallet ${cert.signer}`,
status: 'success',
position: 'bottom-left',
duration: 5000,
isClosable: true,
});
},
[toast, setAccount, onClose],
[setAccount, onClose],
);

const connectHandler = useCallback(async () => {
Expand Down

0 comments on commit 69d9f37

Please sign in to comment.