From 0dff1cdb5a64dbb24a3d57105ffb6537cad97e6f Mon Sep 17 00:00:00 2001 From: Adam Chambers Date: Mon, 20 Nov 2023 16:00:33 -0500 Subject: [PATCH] feat: add coinbase wallet support --- .../common/Wallet/WalletAuthDialog.tsx | 4 ++- .../src/components/ui/icons.tsx | 30 +++++++++++++++++++ apps/marginfi-v2-ui/src/config/wallets.ts | 2 ++ 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/apps/marginfi-v2-ui/src/components/common/Wallet/WalletAuthDialog.tsx b/apps/marginfi-v2-ui/src/components/common/Wallet/WalletAuthDialog.tsx index 573df5e045..f53c507628 100644 --- a/apps/marginfi-v2-ui/src/components/common/Wallet/WalletAuthDialog.tsx +++ b/apps/marginfi-v2-ui/src/components/common/Wallet/WalletAuthDialog.tsx @@ -19,6 +19,7 @@ import { IconBrandApple, IconBrandGoogle, IconBraveWallet, + IconCoinbaseWallet, IconPhantomWallet, IconBackpackWallet, IconSolflareWallet, @@ -55,6 +56,7 @@ const socialProviders: { // wallet login options const walletIcons: { [key: string]: React.ReactNode } = { "Brave Wallet": , + "Coinbase Wallet": , Phantom: , Solflare: , Backpack: , @@ -228,7 +230,7 @@ export const WalletAuthDialog = () => {
    {filteredWallets.map((wallet, i) => { const img = walletIcons[wallet.adapter.name] || ( - {wallet.adapter.name} + {wallet.adapter.name} ); return (
  • diff --git a/apps/marginfi-v2-ui/src/components/ui/icons.tsx b/apps/marginfi-v2-ui/src/components/ui/icons.tsx index 27b95d4185..622e7819af 100644 --- a/apps/marginfi-v2-ui/src/components/ui/icons.tsx +++ b/apps/marginfi-v2-ui/src/components/ui/icons.tsx @@ -80,6 +80,35 @@ const IconBraveWallet = ({ size = 24, className }: IconProps) => ( ); +const IconCoinbaseWallet = ({ size = 24, className }: IconProps) => ( + + + + + + + + + + + +); + const IconBrandGoogle = ({ size = 24, className }: IconProps) => (