Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 08a2698

Browse files
committed
simplified example
1 parent 50b2634 commit 08a2698

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

docs/src/examples/components/Segment/Variations/SegmentExampleColor.shorthand.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ const SegmentExampleColor = () => (
66
<ProviderConsumer
77
render={({ siteVariables: { emphasisColors, naturalColors } }) =>
88
_.keys({ ...emphasisColors, ...naturalColors }).map(color => (
9-
<>
10-
<Segment key={color} color={color} content={_.startCase(color)} inverted />
11-
<br />
12-
</>
9+
<Segment key={color} color={color} content={_.startCase(color)} inverted />
1310
))
1411
}
1512
/>

docs/src/examples/components/Segment/Variations/SegmentExampleColor.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ const SegmentExampleColor = () => (
66
<ProviderConsumer
77
render={({ siteVariables: { emphasisColors, naturalColors } }) =>
88
_.keys({ ...emphasisColors, ...naturalColors }).map(color => (
9-
<>
10-
<Segment key={color} color={color} inverted>
11-
{_.startCase(color)}
12-
</Segment>
13-
<br />
14-
</>
9+
<Segment key={color} color={color} inverted>
10+
{_.startCase(color)}
11+
</Segment>
1512
))
1613
}
1714
/>

0 commit comments

Comments
 (0)