-
Notifications
You must be signed in to change notification settings - Fork 4
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
✨ Show trust score and stake rate instead of pending and unconfirmed #148
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/rayanfer32/nexus-explorer-next/H29bfpq37i29WkFdf5KV9o5wPhC9 |
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.
Good enough, try to solve comment
{isTrust ? ( | ||
<SmallCard | ||
label="Stake Rate" | ||
sublabel="" | ||
value={data.rate || 0} | ||
unit="%" | ||
icon={<HiChartBar />} | ||
/> | ||
) : ( | ||
<SmallCard | ||
label="Pending" | ||
sublabel="" | ||
value={new Intl.NumberFormat().format(data?.pending || 0)} | ||
unit="NXS" | ||
icon={<BsFillClockFill />} | ||
/> | ||
)} | ||
{isTrust ? ( | ||
<SmallCard | ||
label="Trust Score" | ||
sublabel="" | ||
value={data?.trust || 0} | ||
unit="+" | ||
icon={<FaHandshake />} | ||
/> | ||
) : ( | ||
<SmallCard | ||
label="Unconfirmed" | ||
sublabel="" | ||
value={data?.unconfirmed || 0} | ||
unit="NXS" | ||
icon={<FaUserClock />} | ||
/> | ||
)} |
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.
can we add a single condition rather duplicating
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.
can we add a single condition rather duplicating
But how ?
Description
Type of change
Area of change
Checklist:
npm run format
/yarn format
before commitdevelop
and merged to my branch before submitting pull requestdevelop
ormain
branchRelated Issue
Proposed Changes
Additional Info
Screenshots