Skip to content

Commit 0443118

Browse files
committed
fix Statistic sub-component names
1 parent f80304f commit 0443118

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/app/Examples/views/Statistic/Types/StatisticStatisticsExample.js renamed to docs/app/Examples/views/Statistic/Types/StatisticGroupExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, {Component} from 'react';
22
import {Statistic} from 'stardust';
33
const {Statistics, Label, Value} = Statistic;
44

5-
export default class StatisticStatisticsExample extends Component {
5+
export default class StatisticGroupExample extends Component {
66
render() {
77
return (
88
<Statistics>

docs/app/Examples/views/Statistic/Types/StatisticTypesExamples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default class StatisticTypesExamples extends Component {
1717
<ComponentExample
1818
title='Statistic Group'
1919
description='A group of statistics'
20-
examplePath='views/Statistic/Types/StatisticStatisticsExample'
20+
examplePath='views/Statistic/Types/StatisticGroupExample'
2121
/>
2222
</ExampleSection>
2323
);

src/views/Statistic/Label.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import classNames from 'classnames';
33
import getUnhandledProps from 'src/utils/getUnhandledProps';
44
import META from 'src/utils/Meta';
55

6-
export default class Statistic extends Component {
6+
export default class Label extends Component {
77
static propTypes = {
88
children: PropTypes.node.isRequired,
99
className: PropTypes.string,
1010
};
1111

1212
static _meta = {
1313
library: META.library.semanticUI,
14-
name: 'StatisticLabel',
14+
name: 'Label',
1515
type: META.type.view,
1616
parent: 'Statistic',
1717
};

src/views/Statistic/Value.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import classNames from 'classnames';
33
import getUnhandledProps from 'src/utils/getUnhandledProps';
44
import META from 'src/utils/Meta';
55

6-
export default class Statistic extends Component {
6+
export default class Value extends Component {
77
static propTypes = {
88
children: PropTypes.node.isRequired,
99
className: PropTypes.string,
1010
};
1111

1212
static _meta = {
1313
library: META.library.semanticUI,
14-
name: 'StatisticValue',
14+
name: 'Value',
1515
type: META.type.view,
1616
parent: 'Statistic',
1717
};

0 commit comments

Comments
 (0)