-
Notifications
You must be signed in to change notification settings - Fork 19
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
ENS #402
ENS #402
Conversation
750e446
to
3805d62
Compare
const WalletAvatar: FC<WalletAvatarProps> = memo(({ seed, className }) => { | ||
const rootRef = useRef<HTMLDivElement>(null); | ||
|
||
console.log("WALLET AVATAR"); |
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.
Remove log
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.
console.log("fetchEnsName"); | ||
console.log(seed); |
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.
Remove logs
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.
|
||
return ( | ||
<div | ||
ref={rootRef} |
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.
Why we need this ref?
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.
className={classNames( | ||
"inline-flex items-center justify-center relative", | ||
"overflow-hidden", | ||
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.
Why we need this container? We already have inside the AutoIcon and Avatar also can work good without it I guess
className={classNames( | ||
"h-24 w-24 min-w-[6rem] m-0.5", | ||
"bg-black/40", | ||
"rounded-l-[.5625rem]", |
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.
Why we need this classNames here?
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 think It could be better just to pass className
from props
)} | ||
/> | ||
<span className="truncate min-w-0"> | ||
<TReplace msg={ensName ? ensName : wallet.name} /> |
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.
Use ??
5707849
to
bcdbfe8
Compare
No description provided.