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

feat: Implement WalletDropdownBaseName Sub-Component #913

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

cpcramer
Copy link
Contributor

@cpcramer cpcramer commented Jul 26, 2024

What changed? Why?

Add the Base Name tab to the Wallet Component. When a user has a Base Name, this tab will direct them to their Base Name profile page. If a user does not have a Base Name, this tab will direct them to a page where they can create one!

  • Add WalletDropdownBaseName component
  • Add BaseName SVG
  • Add WalletDropdownBaseName tests
Part Description Status
1 feat: Implement WalletDropdownBaseName Sub-Component #913
2 docs: Implement WalletDropdownBaseName Sub-Component #916 In Progress

Video recording:
Wallet Components & Utilities · OnchainKit - 27 July 2024 - Watch Video

Screenshot 2024-07-27 at 1 11 57 PM Screenshot 2024-07-27 at 1 11 38 PM

Notes to reviewers

How has it been tested?

@github-actions github-actions bot added documentation Improvements or additions to documentation pkg: wallet labels Jul 26, 2024
@cpcramer cpcramer changed the title 🚧 Implement WalletDropdownBaseName Sub-Component feat: Implement WalletDropdownBaseName Sub-Component Jul 27, 2024
@cpcramer cpcramer changed the title feat: Implement WalletDropdownBaseName Sub-Component feat: Implement WalletDropdownBaseName Sub-Component Jul 27, 2024
@Zizzamia
Copy link
Contributor

@cpcramer could you rebase from main when you have a minute? With all our tests in order, it'll help our CI pass more easily.

@cpcramer
Copy link
Contributor Author

@Zizzamia Rebased ✅

@Zizzamia
Copy link
Contributor

@cpcramer let's make sure the CI Test check is passing.

@cpcramer cpcramer force-pushed the paul/add-base-name branch from d5541a4 to ddc0fac Compare July 30, 2024 03:14
Copy link

vercel bot commented Jul 30, 2024

Deployment failed with the following error:

You don't have permission to create a Preview Deployment for this project.

View Documentation: https://vercel.com/docs/accounts/team-members-and-roles

src/wallet/index.ts Outdated Show resolved Hide resolved
import type { WalletDropdownBaseNameReact } from '../types';

export function WalletDropdownBaseName({
className,
Copy link
Contributor

Choose a reason for hiding this comment

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

There are some extra customization we might want to add here as follow up PR. I let you think on this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do 👍

chain: base,
});

let hasBaseUserName = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be

const hasBaseUserName = !!baseName;

???

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It could be. I actually refactored that to what you see now because I thought that !! was confusing syntax

Copy link
Contributor Author

@cpcramer cpcramer Jul 30, 2024

Choose a reason for hiding this comment

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

I feel like what I have now is easier to read. But happy to update to !!baseName

Copy link
Contributor

@Zizzamia Zizzamia left a comment

Choose a reason for hiding this comment

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

Merging this, and I will follow up on the notes.

@Zizzamia Zizzamia merged commit d50b85d into main Jul 30, 2024
12 of 13 checks passed
@Zizzamia Zizzamia deleted the paul/add-base-name branch July 30, 2024 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation pkg: wallet
Development

Successfully merging this pull request may close these issues.

2 participants