Skip to content

Commit

Permalink
wrap code blocks in a Column fixes #55
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Oct 16, 2015
1 parent 934304c commit 6953359
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/app/Components/ComponentDoc/ComponentExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ export default class ComponentExample extends Component {

render() {
let code = (
<Highlight className='language-javascript'>
{this.fileContents}
</Highlight>
<Column>
<Highlight className='language-javascript'>
{this.fileContents}
</Highlight>
</Column>
);

return (
Expand All @@ -51,8 +53,8 @@ export default class ComponentExample extends Component {

<Column>
{createElement(this.component)}
{this.state.showCode && code}
</Column>
{this.state.showCode && code}
</Grid>
);
}
Expand Down

0 comments on commit 6953359

Please sign in to comment.