Skip to content

Commit

Permalink
created dynamic wrapped ConnectWalletButton
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-defi committed Nov 8, 2024
1 parent a40d783 commit c4ce911
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { useCopyToClipboard } from 'usehooks-ts';
import { useAccount, useSwitchChain } from 'wagmi';
import ChainDropdown from 'apps/web/src/components/ChainDropdown';
import { useSearchParams } from 'next/navigation';
import CryptoProviders from 'apps/web/app/CryptoProviders';
import { DynamicCryptoProviders } from 'apps/web/app/CryptoProviders.dynamic';

export enum ConnectWalletButtonVariants {
BaseOrg,
Expand All @@ -38,14 +38,14 @@ type ConnectWalletButtonProps = {
connectWalletButtonVariant: ConnectWalletButtonVariants;
};

export function WrappedConnectWalletButton({
export function DynamicWrappedConnectWalletButton({
connectWalletButtonVariant = ConnectWalletButtonVariants.BaseOrg,
}: ConnectWalletButtonProps) {
return (
<CryptoProviders>
<DynamicCryptoProviders>
<ConnectWalletButton connectWalletButtonVariant={connectWalletButtonVariant} />
</CryptoProviders>
)
</DynamicCryptoProviders>
);
}

export function ConnectWalletButton({
Expand Down

0 comments on commit c4ce911

Please sign in to comment.