Skip to content

Commit

Permalink
💄 site: fix extra space in demo code box
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jan 29, 2019
1 parent 66366cf commit ba1e305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
10 changes: 3 additions & 7 deletions site/theme/template/Content/ComponentDoc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ export default class ComponentDoc extends React.Component {
intl: PropTypes.object,
};

constructor(props) {
super(props);

this.state = {
expandAll: false,
};
}
state = {
expandAll: false,
};

handleExpandToggle = () => {
const { expandAll } = this.state;
Expand Down
3 changes: 1 addition & 2 deletions site/theme/template/Content/Demo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ ${sourceCode.replace('mountNode', "document.getElementById('container')")}
{highlightedStyle ? (
<div key="style" className="highlight">
<pre>
<code className="css" dangerouslySetInnerHTML={{ __html: highlightedStyle }} />{' '}
{/* eslint-disable-line */}
<code className="css" dangerouslySetInnerHTML={{ __html: highlightedStyle }} />
</pre>
</div>
) : null}
Expand Down

0 comments on commit ba1e305

Please sign in to comment.