HomePhabricator
Diffusion Comm 9b64f8d068a0

[web] Introduce basic `ConnectedWalletInfo` component

Tags
None
Referenced Files
F360511: 4098fc.png
Feb 5 2023, 2:32 PM
File Not Attached
F360510: 4098fc.png
Feb 5 2023, 2:32 PM
File Not Attached
Subscribers
None

Description

[web] Introduce basic ConnectedWalletInfo component

Summary: This component will replace the the Rainbowkit ConnectButton. For now just displays the ENS name or address of connected wallet. In future diffs will also display avatar (ENS or rainbowkit emoji) and will display AccountModal when clicked.

Test Plan:
Looks as expected:

4098fc.png (1×990 px, 148 KB)

4098fc.png (1×990 px, 148 KB)

Should we shorten the address?

Yeah I'll address that in subsequent diff.

Why are we keeping the ConnectButton around?

It's been helpful when working on this stack to be able to have them side-by-side. Since all of this is hidden behind an isDev check it just makes it more convenient instead of stashing/popping over and over again.

Reviewers: ashoat, tomek

Reviewed By: ashoat

Differential Revision: https://phab.comm.dev/D6570

Details

Provenance
atulAuthored on Feb 5 2023, 2:27 PM
Reviewer
ashoat
Differential Revision
D6570: [web] Introduce basic `ConnectedWalletInfo` component
Parents
rCOMMbab60a49f5ee: [lib] Update ThreadInfo.uiName to return an array of UserEntities
Branches
Unknown
Tags
Unknown