ensure mango account is loaded before connecting wallet

This commit is contained in:
Tyler Shipe 2022-01-26 13:37:02 -05:00
parent 29bca2dcc9
commit 351bc5d11d
5 changed files with 59 additions and 61 deletions

View File

@ -6,11 +6,7 @@ import {
DuplicateIcon,
LogoutIcon,
} from '@heroicons/react/outline'
import {
WALLET_PROVIDERS,
DEFAULT_PROVIDER,
PROVIDER_LOCAL_STORAGE_KEY,
} from '../hooks/useWallet'
import { PROVIDER_LOCAL_STORAGE_KEY } from '../hooks/useWallet'
import useLocalStorageState from '../hooks/useLocalStorageState'
import { abbreviateAddress, copyToClipboard } from '../utils'
import WalletSelect from './WalletSelect'
@ -18,10 +14,12 @@ import { WalletIcon, ProfileIcon } from './icons'
import AccountsModal from './AccountsModal'
import { useEffect } from 'react'
import { useTranslation } from 'next-i18next'
import { DEFAULT_PROVIDER, WALLET_PROVIDERS } from '../utils/wallet-adapters'
const ConnectWalletButton = () => {
const { t } = useTranslation('common')
const wallet = useMangoStore((s) => s.wallet.current)
const mangoGroup = useMangoStore((s) => s.selectedMangoGroup.current)
const pfp = useMangoStore((s) => s.wallet.pfp)
const connected = useMangoStore((s) => s.wallet.connected)
const set = useMangoStore((s) => s.set)
@ -103,7 +101,7 @@ const ConnectWalletButton = () => {
>
<button
onClick={handleWalletConect}
disabled={!wallet}
disabled={!wallet || !mangoGroup}
className="rounded-none text-th-primary hover:bg-th-bkg-4 focus:outline-none disabled:text-th-fgd-4 disabled:cursor-wait"
>
<div className="flex flex-row items-center px-3 justify-center h-full default-transition hover:text-th-fgd-1">

View File

@ -18,6 +18,7 @@ const EmptyState: FunctionComponent<EmptyStateProps> = ({
title,
}) => {
const wallet = useMangoStore((s) => s.wallet.current)
const mangoGroup = useMangoStore((s) => s.selectedMangoGroup.current)
return (
<div className="flex flex-col items-center text-th-fgd-1 px-4 pb-2 rounded-lg">
@ -33,7 +34,11 @@ const EmptyState: FunctionComponent<EmptyStateProps> = ({
</p>
) : null}
{buttonText && onClickButton ? (
<Button className="mt-2" onClick={onClickButton} disabled={!wallet}>
<Button
className="mt-2"
onClick={onClickButton}
disabled={!wallet || !mangoGroup}
>
{buttonText}
</Button>
) : null}

View File

@ -1,7 +1,7 @@
import { Menu } from '@headlessui/react'
import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/solid'
import useMangoStore from '../stores/useMangoStore'
import { WALLET_PROVIDERS } from '../hooks/useWallet'
import { WALLET_PROVIDERS } from '../utils/wallet-adapters'
export default function WalletSelect({ isPrimary = false }) {
const setMangoStore = useMangoStore((s) => s.set)

View File

@ -3,58 +3,11 @@ import Wallet from '@project-serum/sol-wallet-adapter'
import useLocalStorageState from './useLocalStorageState'
import useMangoStore from '../stores/useMangoStore'
import { notify } from '../utils/notifications'
import {
PhantomWalletAdapter,
SlopeWalletAdapter,
SolletExtensionAdapter,
SolflareExtensionWalletAdapter,
BitpieWalletAdapter,
} from '../utils/wallet-adapters'
import { WalletAdapter } from '../@types/types'
import { useTranslation } from 'next-i18next'
import { DEFAULT_PROVIDER, WALLET_PROVIDERS } from '../utils/wallet-adapters'
const ASSET_URL =
'https://cdn.jsdelivr.net/gh/solana-labs/oyster@main/assets/wallets'
export const WALLET_PROVIDERS = [
{
name: 'Phantom',
url: 'https://www.phantom.app',
icon: `https://www.phantom.app/img/logo.png`,
adapter: PhantomWalletAdapter,
},
{
name: 'Solflare',
url: 'https://solflare.com',
icon: `${ASSET_URL}/solflare.svg`,
adapter: SolflareExtensionWalletAdapter,
},
{
name: 'Sollet.io',
url: 'https://www.sollet.io',
icon: `${ASSET_URL}/sollet.svg`,
},
{
name: 'Sollet Extension',
url: 'https://www.sollet.io/extension',
icon: `${ASSET_URL}/sollet.svg`,
adapter: SolletExtensionAdapter as any,
},
{
name: 'Slope',
url: 'https://www.slope.finance/#/wallet',
icon: 'data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjEyOCIgdmlld0JveD0iMCAwIDEyOCAxMjgiIHdpZHRoPSIxMjgiIHhtbG5zPS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A5LDI5LjA5IEwyOS4wOSwzNC45MDkgWiIgaWQ9IkNvbWJpbmVkLVNoYXBlIiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTMpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMi4wMDAwMDAsIDMyLjAwMDAwMCkgcm90YXRlKC0zMC4wMDAwMDApIHRyYW5zbGF0ZSgtMzIuMDAwMDAwLCAtMzIuMDAwMDAwKSAiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==',
adapter: BitpieWalletAdapter,
},
]
export const PROVIDER_LOCAL_STORAGE_KEY = 'walletProvider-0.1'
export const DEFAULT_PROVIDER = WALLET_PROVIDERS[0]
export default function useWallet() {
const { t } = useTranslation('common')

View File

@ -1,5 +1,47 @@
export * from './phantom'
export * from './solflare-extension'
export * from './sollet-extension'
export * from './slope'
export * from './bitpie'
import { PhantomWalletAdapter } from './phantom'
import { SolflareExtensionWalletAdapter } from './solflare-extension'
import { SolletExtensionAdapter } from './sollet-extension'
import { SlopeWalletAdapter } from './slope'
import { BitpieWalletAdapter } from './bitpie'
const ASSET_URL =
'https://cdn.jsdelivr.net/gh/solana-labs/oyster@main/assets/wallets'
export const WALLET_PROVIDERS = [
{
name: 'Phantom',
url: 'https://www.phantom.app',
icon: `https://www.phantom.app/img/logo.png`,
adapter: PhantomWalletAdapter,
},
{
name: 'Solflare',
url: 'https://solflare.com',
icon: `${ASSET_URL}/solflare.svg`,
adapter: SolflareExtensionWalletAdapter,
},
{
name: 'Sollet.io',
url: 'https://www.sollet.io',
icon: `${ASSET_URL}/sollet.svg`,
},
{
name: 'Sollet Extension',
url: 'https://www.sollet.io/extension',
icon: `${ASSET_URL}/sollet.svg`,
adapter: SolletExtensionAdapter as any,
},
{
name: 'Slope',
url: 'https://www.slope.finance/#/wallet',
icon: 'data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjEyOCIgdmlld0JveD0iMCAwIDEyO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