diff --git a/.changeset/many-ways-divide.md b/.changeset/many-ways-divide.md new file mode 100644 index 0000000000..7b158bcc82 --- /dev/null +++ b/.changeset/many-ways-divide.md @@ -0,0 +1,5 @@ +--- +"@coinbase/onchainkit": patch +--- + +chore: Update disconnect SVG image. By @cpcramer #1103 diff --git a/src/internal/svg/disconnectSvg.stories.ts b/src/internal/svg/disconnectSvg.stories.ts new file mode 100644 index 0000000000..6250cc373a --- /dev/null +++ b/src/internal/svg/disconnectSvg.stories.ts @@ -0,0 +1,23 @@ +import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; +import { disconnectSvg } from './disconnectSvg'; + +const SvgWrapper: React.FC = () => + React.createElement( + 'div', + { + style: { width: '100%', height: '100%', viewBox: '0 0 16 20' }, + }, + disconnectSvg, + ); + +const meta = { + title: 'Wallet/DisconnectSvg', + component: SvgWrapper, + tags: ['autodocs'], +} satisfies Meta; + +export default meta; +type Story = StoryObj; + +export const Basic: Story = {}; diff --git a/src/internal/svg/disconnectSvg.tsx b/src/internal/svg/disconnectSvg.tsx index 1cdc389b2e..c3b927923b 100644 --- a/src/internal/svg/disconnectSvg.tsx +++ b/src/internal/svg/disconnectSvg.tsx @@ -3,19 +3,19 @@ import { fill } from '../../styles/theme'; export const disconnectSvg = ( diff --git a/src/wallet/components/WalletDropdownDisconnect.stories.tsx b/src/wallet/components/WalletDropdownDisconnect.stories.tsx new file mode 100644 index 0000000000..f84d172f0c --- /dev/null +++ b/src/wallet/components/WalletDropdownDisconnect.stories.tsx @@ -0,0 +1,33 @@ +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import { baseSepolia } from 'viem/chains'; +import { http, WagmiProvider, createConfig } from 'wagmi'; +import { WalletDropdownDisconnect } from './WalletDropdownDisconnect'; + +const wagmiConfig = createConfig({ + chains: [baseSepolia], + transports: { + [baseSepolia.id]: http(), + }, +}); + +export default { + title: 'Wallet/WalletDropdownDisconnect', + component: WalletDropdownDisconnect, + decorators: [ + (Story) => ( + + + + + + ), + ], +}; + +export const Default = () => ; + +export const CustomText = () => ; + +export const CustomClass = () => ( + +);