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

ENS #402

Merged
merged 9 commits into from
Feb 13, 2024
Merged

ENS #402

merged 9 commits into from
Feb 13, 2024

Conversation

googolev
Copy link
Contributor

No description provided.

package.json Outdated Show resolved Hide resolved
src/app/components/elements/AutoIcon.tsx Outdated Show resolved Hide resolved
src/app/components/elements/ContactAutocomplete.tsx Outdated Show resolved Hide resolved
src/app/components/elements/WalletName.tsx Outdated Show resolved Hide resolved
src/app/components/elements/WalletName.tsx Outdated Show resolved Hide resolved
src/app/hooks/ens.tsx Outdated Show resolved Hide resolved
src/app/hooks/ens.tsx Show resolved Hide resolved
@serg-plusplus serg-plusplus changed the title Use env ENS Feb 12, 2024
const WalletAvatar: FC<WalletAvatarProps> = memo(({ seed, className }) => {
const rootRef = useRef<HTMLDivElement>(null);

console.log("WALLET AVATAR");
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove log

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines 27 to 28
console.log("fetchEnsName");
console.log(seed);
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove logs

Copy link
Contributor Author

Choose a reason for hiding this comment

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


return (
<div
ref={rootRef}
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines 51 to 55
className={classNames(
"inline-flex items-center justify-center relative",
"overflow-hidden",
className,
)}
Copy link
Contributor

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

Comment on lines 64 to 67
className={classNames(
"h-24 w-24 min-w-[6rem] m-0.5",
"bg-black/40",
"rounded-l-[.5625rem]",
Copy link
Contributor

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?

Copy link
Contributor

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} />
Copy link
Contributor

Choose a reason for hiding this comment

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

Use ??

@serg-plusplus serg-plusplus merged commit 21256af into dev Feb 13, 2024
1 check 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.

2 participants