💄 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, intl: PropTypes.object,
}; };
constructor(props) { state = {
super(props); expandAll: false,
};
this.state = {
expandAll: false,
};
}
handleExpandToggle = () => { handleExpandToggle = () => {
const { expandAll } = this.state; const { expandAll } = this.state;

View File

@ -301,8 +301,7 @@ ${sourceCode.replace('mountNode', "document.getElementById('container')")}
{highlightedStyle ? ( {highlightedStyle ? (
<div key="style" className="highlight"> <div key="style" className="highlight">
<pre> <pre>
<code className="css" dangerouslySetInnerHTML={{ __html: highlightedStyle }} />{' '} <code className="css" dangerouslySetInnerHTML={{ __html: highlightedStyle }} />
{/* eslint-disable-line */}
</pre> </pre>
</div> </div>
) : null} ) : null}