💄 site: fix extra space in demo code box

This commit is contained in:
afc163 2019-01-29 18:14:03 +08:00
parent 66366cfe18
commit ba1e305368
No known key found for this signature in database
GPG Key ID: 738F973FCE5C6B48
2 changed files with 4 additions and 9 deletions

View File

@ -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;

View File

@ -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}