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

feat: add <Balance /> #155

Closed
wants to merge 1 commit into from
Closed

Conversation

eragon512
Copy link
Contributor

What changed? Why?

Notes to reviewers

How has it been tested?
Unit test

* @param {number} [decimalDigits=3] - Determines the no. of decimal digits to be displayed.
* @param {React.HTMLAttributes<HTMLSpanElement>} [props] - Additional HTML attributes for the span element.
*/
export function Balance({ address, className, decimalDigits = 3, ...props }: BalanceProps) {
Copy link
Contributor

@Sneh1999 Sneh1999 Feb 20, 2024

Choose a reason for hiding this comment

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

Can we add this functionality to the avatar if possible?

Copy link
Contributor Author

@eragon512 eragon512 Feb 20, 2024

Choose a reason for hiding this comment

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

not sure if that's the best approach here - generally, it's best to keep each component small and atomic, with a single, clear responsibility

adding balance data to the avatar might add multiple responsibilities inside a single component

if users need balance data in their avatar, having a separate component allows them to stitch the avatar and balance components together in the way they feel fits their use case best

LMK your thoughts on this

Copy link
Contributor

Choose a reason for hiding this comment

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

This week is hard for us to ship a new component.

Let's table this till the end of ETH Denver.

But, I love we at least started the convo.

@Zizzamia
Copy link
Contributor

Closing this for now, as balance is not activelly develop yet.

@Zizzamia Zizzamia closed this Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants