DAVFoundation / xplore

⛓ A block explorer for local Ethereum testnets
MIT License
62 stars 65 forks source link

refactored Accounts by creating Account Balance component. #45

Closed cg-cnu closed 6 years ago

cg-cnu commented 6 years ago

Well, I saw the Accounts component and felt It can be refactored for a little more clarity. Feel free to close this in case further breakup of components is not needed.

Description

Two things I modified in this pr.

Moved Account number and balance to a different component. For lack of better name calling it AccountBalance. ( @TalAter Let me know if you got a better idea )

Moved the map func generating the list of accounts to render function.

How Has This Been Tested?

npm tests went well and no errors in the UI.

TalAter commented 6 years ago

Looks great! 🎆