Skip to content

Commit

Permalink
feat(webapp): add text to the bp.json generator link
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Oct 31, 2023
1 parent 058b418 commit d2dffc1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
7 changes: 6 additions & 1 deletion webapp/src/language/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,12 @@
"rewards": "Rewards",
"rewardsPercentage": "Percentage of rewards",
"viewList": "View full list",
"paidProducersText": "Daily Rewards"
"paidProducersText": "Daily Rewards",
"publishBPDetails": "Publish BP Details",
"generateBPjson": "Generate a BP.json",
"tooltip": {
"generateBPjson": "BPs can easily create and update their bp.json for transparency."
}
},
"nodesRoute": {},
"nodesDistributionRoute": {},
Expand Down
7 changes: 6 additions & 1 deletion webapp/src/language/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,12 @@
"rewards": "Recompensas",
"rewardsPercentage": "Porcentaje de recompensas",
"viewList": "Ver lista completa",
"paidProducersText": "Recompensas Diarias"
"paidProducersText": "Recompensas Diarias",
"publishBPDetails": "Publicar datos de BP",
"generateBPjson": "Generar un BP.json",
"tooltip": {
"generateBPjson": "BPs pueden fácilmente crear y actualizar sus bp.json para ser transparentes."
}
},
"nodesRoute": {},
"nodesDistributionRoute": {},
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/routes/NonCompliantBPs/RewardsStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const RewardsStats = ({ stats }) => {
</Typography>
</div>
</SimpleDataCard>
<SimpleDataCard title={'BP.json Generator'}>
<SimpleDataCard title={t('publishBPDetails')} helperText={t('tooltip.generateBPjson')}>
<div className={`${classes.statsText} ${classes.verticallyCenter}`}>
<Button
aria-label="BP.json Generator Tool"
Expand All @@ -74,7 +74,7 @@ const RewardsStats = ({ stats }) => {
color="primary"
mt={2}
>
{'Generator Tool'}
{t('generateBPjson')}
</Button>
</div>
</SimpleDataCard>
Expand Down

0 comments on commit d2dffc1

Please sign in to comment.