Tweak styling of single component view in DevDocs.
This commit is contained in:
parent
3d03faa887
commit
134f472484
|
@ -3,7 +3,7 @@
|
||||||
* External dependencies
|
* External dependencies
|
||||||
*/
|
*/
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import { Component } from '@wordpress/element';
|
import { Component, Fragment } from '@wordpress/element';
|
||||||
import { find, get } from 'lodash';
|
import { find, get } from 'lodash';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -55,8 +55,9 @@ export default class extends Component {
|
||||||
'woocommerce-analytics__card'
|
'woocommerce-analytics__card'
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
|
<Fragment key={ componentName }>
|
||||||
<Card
|
<Card
|
||||||
key={ componentName }
|
key={ `${ componentName }-example` }
|
||||||
className={ cardClasses }
|
className={ cardClasses }
|
||||||
title={
|
title={
|
||||||
component ? (
|
component ? (
|
||||||
|
@ -84,15 +85,16 @@ export default class extends Component {
|
||||||
filePath={ filePath }
|
filePath={ filePath }
|
||||||
render={ render }
|
render={ render }
|
||||||
/>
|
/>
|
||||||
|
</Card>
|
||||||
{ component && (
|
{ component && (
|
||||||
<ComponentDocs
|
<ComponentDocs
|
||||||
|
key={ `${ componentName }-readme` }
|
||||||
componentName={ componentName }
|
componentName={ componentName }
|
||||||
filePath={ filePath }
|
filePath={ filePath }
|
||||||
docPath={ docPath }
|
docPath={ docPath }
|
||||||
/>
|
/>
|
||||||
) }
|
) }
|
||||||
</Card>
|
</Fragment>
|
||||||
);
|
);
|
||||||
} ) }
|
} ) }
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue