-
Notifications
You must be signed in to change notification settings - Fork 192
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
Conversation
@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. |
9ace7e5
to
d5541a4
Compare
@Zizzamia Rebased ✅ |
@cpcramer let's make sure the CI Test check is passing. |
d5541a4
to
ddc0fac
Compare
Deployment failed with the following error:
View Documentation: https://vercel.com/docs/accounts/team-members-and-roles |
import type { WalletDropdownBaseNameReact } from '../types'; | ||
|
||
export function WalletDropdownBaseName({ | ||
className, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do 👍
3646933
to
e76fe1d
Compare
chain: base, | ||
}); | ||
|
||
let hasBaseUserName = false; |
There was a problem hiding this comment.
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;
???
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
0e5d5f3
to
f69b963
Compare
There was a problem hiding this 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.
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!
WalletDropdownBaseName
componentWalletDropdownBaseName
testsVideo recording:
Wallet Components & Utilities · OnchainKit - 27 July 2024 - Watch Video
Notes to reviewers
How has it been tested?