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

Commit

Permalink
fix(docs): display name for function components (#1107)
Browse files Browse the repository at this point in the history
* apply fix

* remove value to reduce copy paste

* fix typo
  • Loading branch information
kuzhelov authored Mar 26, 2019
1 parent 617d1e7 commit 5744fbb
Showing 1 changed file with 1 addition and 2 deletions.
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.displayName = '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

0 comments on commit 5744fbb

Please sign in to comment.