Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Wallet Refactor #1732

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Chore: Wallet Refactor #1732

wants to merge 13 commits into from

Conversation

brendan-defi
Copy link
Contributor

What changed? Why?

  • refactored wallet for walletisland

Notes to reviewers

How has it been tested?
locally, vitest

Copy link

vercel bot commented Dec 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
onchainkit-coverage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 2:17pm
onchainkit-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 2:17pm
onchainkit-routes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 2:17pm

<WalletBasic>
<ConnectWallet />
<WalletDropdown />
</WalletBasic>
Copy link
Contributor

@alessey alessey Dec 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't wallet island and and current share the connect wallet components? would't the only change be <WalletDropdown/> vs. <WalletIsland/>?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that's correct. The reason for this change is that WalletBasic is opinionated about children, destructuring and reorganizing them.

Copy link
Contributor

@alessey alessey Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to use a single top level node and then look for WalletDropdown or WalletIsland to determine which? If a user added WalletIsland and WalletDropdown child components we could just log an error and choose the first one to display.

tailwind.config.js Outdated Show resolved Hide resolved
tailwind.config.js Outdated Show resolved Hide resolved
tailwind.config.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants