Skip to content

Commit

Permalink
Fix stats (#112)
Browse files Browse the repository at this point in the history
* Fix price factors title

* Delete duplicated entry
  • Loading branch information
selankon authored Aug 26, 2024
1 parent 1e7d76f commit 483f208
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
7 changes: 1 addition & 6 deletions src/components/Stats/ChainDetails/ChainInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ export const ChainInfo = () => {
children: timestampInfo,
isNumber: true,
},
{
label: t('stats.blockTimestamp', { defaultValue: 'Block timestamp' }),
children: timestampInfo,
isNumber: true,
},
]

const tokensData: GridItemProps[] = [
Expand All @@ -66,7 +61,7 @@ export const ChainInfo = () => {
isNumber: true,
},
{
label: t('stats.price_factors_title', { defaultValue: 'Price factors' }),
label: t('stats.price_factors.title', { defaultValue: 'Price factors' }),
children: <PriceFactorsModal />,
isNumber: true,
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Stats/ChainDetails/PriceFactors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const PriceFactorsModal = () => {
return (
<>
<StatsModalWrapper
title={t('stats.price_factors', { defaultValue: 'Price factors' })}
title={t('stats.price_factors.title', { defaultValue: 'Price factors' })}
icon={IoIosPricetag}
link={'https://developer.vocdoni.io/vocdoni-api/price-factors-information'}
isError={isError}
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/locales/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@
"sizePriceFactor": "Mida",
"sizePriceFactor_info": "El component del preu per mida és directament proporcional al nombre màxim de vots permesos en l'elecció",
"sizeScaling": "Factor de creixement",
"sizeScaling_info": "Taxa de creixement del preu per a eleccions amb un nombre màxim de vots (maxCensusSize) superior al llindar k7."
"sizeScaling_info": "Taxa de creixement del preu per a eleccions amb un nombre màxim de vots (maxCensusSize) superior al llindar k7.",
"title": "Factors de preu"
},
"price_factors_title": "Factors del preu",
"seconds_one": "{{count}} segon",
"seconds_many": "{{count}} segons",
"seconds_other": "{{count}} segons",
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@
"sizePriceFactor": "Size",
"sizePriceFactor_info": "The size price component is directly proportional to the maximum number of votes allowed in the election",
"sizeScaling": "Growth factor",
"sizeScaling_info": "Rate of price growth for elections with a maximum number of votes (maxCensusSize) exceeding the k7 threshold."
"sizeScaling_info": "Rate of price growth for elections with a maximum number of votes (maxCensusSize) exceeding the k7 threshold.",
"title": "Price factors"
},
"price_factors_title": "Price factors",
"seconds_one": "{{ count }} second",
"seconds_other": "{{ count }} seconds",
"syncing": "Syncing",
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@
"sizePriceFactor": "Tamaño",
"sizePriceFactor_info": "El componente de precio de tamaño es directamente proporcional al número máximo de votos permitidos en la elección",
"sizeScaling": "Factor de crecimiento",
"sizeScaling_info": "Tasa de crecimiento de precios para elecciones con un número máximo de votos (tamaño máximo del censo) que excede el umbral k7."
"sizeScaling_info": "Tasa de crecimiento de precios para elecciones con un número máximo de votos (tamaño máximo del censo) que excede el umbral k7.",
"title": "Factores de precio"
},
"price_factors_title": "Factores del precio",
"seconds_one": "{{ count }} segundo",
"seconds_many": "{{ count }} segundos",
"seconds_other": "{{ count }} segundos",
Expand Down

2 comments on commit 483f208

@github-actions
Copy link

Choose a reason for hiding this comment

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

@github-actions
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.