-
Notifications
You must be signed in to change notification settings - Fork 163
fix(network-card): added taro nodes stat to network card #668
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
fix(network-card): added taro nodes stat to network card #668
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed with tests and ci passing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea! I didn't even think to update these. Thank you.
Just have a few minor suggestions.
src/components/home/NetworkCard.tsx
Outdated
@@ -43,6 +43,13 @@ const NetworkCard: React.FC<{ network: Network }> = ({ network }) => { | |||
suffix={<LinkOutlined />} | |||
/> | |||
</Col> | |||
<Col span={12}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a big fan of the empty space in the second column. You could get all 3 on one row by setting span={8}
on all columns and removing the "Nodes" from the titles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/components/home/NetworkCard.tsx
Outdated
<Statistic | ||
title={l('taroNodes')} | ||
value={network.nodes.taro.length} | ||
suffix={<ApiOutlined />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
antd doesn't provide a lot of icons to choose from but I think the DollarOutlined
one makes more sense for Taro since the primary goal of the project is to bring stablecoins to Bitcoin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to go. Going to merge. Thanks for the update
Description
Updated Network card to display the amount of taro nodes.
Steps to Test