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

fix(docs): display name for function components #1107

Merged
merged 3 commits into from
Mar 26, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/src/views/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ export default () => (
const OpaqueBackground = ({ children, color }) => (
<Segment styles={{ backgroundColor: color }} content={{ children }} />
)
OpaqueBackground.dislayName = 'OpaqueBackground'

return (
<OpaqueBackground color="lightyellow">
This is a bad approach to opaque background :(
</OpaqueBackground>
)
}}
value={`<OpaqueBackground color="lightyellow">This is a bad approach to opaque background :(</OpaqueBackground>`}
/>
<Header as="h4">Box's misuse: handle relative positioning cases</Header>
<CodeSnippet
Expand All @@ -101,7 +101,6 @@ export default () => (
</RelativePositioned>
)
}}
value={`<RelativePositioned left='30px'>This is a bad way to support relative-positioning :(</RelativePositioned>`}
/>
<p>
While it might seem that the intent is addressed with the approach taken, however, this is
Expand Down