Skip to content

Commit e4cce0b

Browse files
committed
do not destructure simple Statistic component examples
1 parent 0443118 commit e4cce0b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import React, {Component} from 'react';
22
import {Statistic} from 'stardust';
3-
const {Label, Value} = Statistic;
43

54
export default class StatisticBottomLabelExample extends Component {
65
render() {
76
return (
87
<Statistic>
9-
<Value>5,550</Value>
10-
<Label>Downloads</Label>
8+
<Statistic.Label>5,550</Statistic.Label>
9+
<Statistic.Value>Downloads</Statistic.Value>
1110
</Statistic>
1211
);
1312
}

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import React, {Component} from 'react';
22
import {Statistic} from 'stardust';
3-
const {Label, Value} = Statistic;
43

54
export default class StatisticTopLabelExample extends Component {
65
render() {
76
return (
87
<Statistic>
9-
<Label>Views</Label>
10-
<Value>40,509</Value>
8+
<Statistic.Label>Views</Statistic.Label>
9+
<Statistic.Value>40,509</Statistic.Value>
1110
</Statistic>
1211
);
1312
}

0 commit comments

Comments
 (0)