diem / explorer

Apache License 2.0
6 stars 12 forks source link

Get canonical address in table links #104

Closed gthoma17 closed 2 years ago

gthoma17 commented 2 years ago

This PR adds the getCanonicalAddress util to the AccountAddress Table link component.

If the address cannot be made canonical it renders the error instead of a link. This isn't the best user experience, but I reckoned it was the right move since we're prioritizing developer usability at this point in the project.

Happy to iterate if theres a more elegant solution tho.