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

fix: ens flow #402

Merged
merged 15 commits into from
Aug 9, 2023
Merged

fix: ens flow #402

merged 15 commits into from
Aug 9, 2023

Conversation

marcomariscal
Copy link
Contributor

@marcomariscal marcomariscal commented Aug 4, 2023

Couldn't figure out wagmi hook refetching and propagating changes to the CustomConnectButton.

Ended up wrapping the wagmi action fetchEnsName with react-query. Going to do the same with the ens avatar.

There is a loading sequence any time the SingleStepContainer is rendered because we are calling the hook, which is not ideal. Figured it's ok for now.

edit:

now includes refetching ensAvatar using our custom useEnsAvatar hook

@netlify
Copy link

netlify bot commented Aug 4, 2023

Deploy Preview for ironclad-parent ready!

Name Link
🔨 Latest commit 3d08eb0
🔍 Latest deploy log https://app.netlify.com/sites/ironclad-parent/deploys/64d3a6f2e999a10008afaba8
😎 Deploy Preview https://deploy-preview-402--ironclad-parent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

{isRefetching ? (
<SkeletonWrap width={100} height={10} />
) : (
ensName || account.displayName
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ensName || account.displayName
abbreviateHash(ensName, 8) || account.displayName

Copy link
Contributor Author

Choose a reason for hiding this comment

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

doesn't work as well here cuz '.eth' and if name is around tenish characters, the name shows with dots in the middle and has a wider width than without abbrv.

Copy link
Contributor

Choose a reason for hiding this comment

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

cool gotcha... we might need to handle that some other way then. cos apparently a long name causes chaos.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cool ye we can abbrv if the name length is greater than some threshold for now

@brucedonovan brucedonovan linked an issue Aug 7, 2023 that may be closed by this pull request
@marcomariscal marcomariscal merged commit cad9191 into dev Aug 9, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENS and NFT issues
2 participants