Skip to content

Commit

Permalink
refactor(Statistic): Rename slateVariation to extraVariation - refs #…
Browse files Browse the repository at this point in the history
…147247
  • Loading branch information
avoinea committed Sep 13, 2022
1 parent 97f0d38 commit 7c0c382
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/StatisticBlock/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const View = ({ data, mode }) => {
backgroundInverted = 'primary',
valueVariation = 'secondary',
labelVariation = 'tertiary',
slateVariation = 'tertiary',
extraVariation = 'tertiary',
} = styles;

if (!items.length && mode === 'edit') return <p>Add statistic items</p>;
Expand All @@ -39,7 +39,7 @@ const View = ({ data, mode }) => {
backgroundvariant={backgroundInverted}
valuevariation={valueVariation}
labelvariation={labelVariation}
slatevariation={slateVariation}
extravariation={extraVariation}
className={styles.align === 'full' ? 'ui container' : ''}
>
{items.map((item, index) => {
Expand Down Expand Up @@ -69,7 +69,7 @@ const View = ({ data, mode }) => {
<Statistic.Label className={cx(labelVariation)}>
{item.label}
</Statistic.Label>
<div className={cx('slate text-center', slateVariation)}>
<div className={cx('slate text-center', extraVariation)}>
{serializeText(item.info)}
</div>
</StatisticWrapper>
Expand Down
6 changes: 3 additions & 3 deletions src/StatisticBlock/stylesSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default () => {
'backgroundInverted',
'valueVariation',
'labelVariation',
'slateVariation',
'extraVariation',
],
},
],
Expand Down Expand Up @@ -47,8 +47,8 @@ export default () => {
],
defaultValue: 'tertiary',
},
slateVariation: {
title: 'Slate variation',
extraVariation: {
title: 'Extra info variation',
choices: [
['primary', 'Primary'],
['secondary', 'Secondary'],
Expand Down

0 comments on commit 7c0c382

Please sign in to comment.