Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
George Hotelling committed Jul 31, 2020
1 parent bff46ab commit aa89f97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 5 additions & 2 deletions packages/block-library/src/details/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export default ( {
[ clientId ]
);

const showInnerBlocks = attributes.initialOpen || isSelected || innerBlockSelected;
const showInnerBlocks =
attributes.initialOpen || isSelected || innerBlockSelected;

const classes = classnames(
{
Expand All @@ -54,7 +55,9 @@ export default ( {
<InspectorControls>
<ToggleControl
label={ __( 'Open by default' ) }
onChange={ ( initialOpen ) => setAttributes( { initialOpen } ) }
onChange={ ( initialOpen ) =>
setAttributes( { initialOpen } )
}
checked={ attributes.initialOpen }
/>
</InspectorControls>
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/details/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import { InnerBlocks, RichText } from '@wordpress/block-editor';
export default ( { attributes } ) => {
return (
<details open={ attributes.initialOpen }>
<RichText.Content
tagName="summary"
value={ attributes.content }
/>
<RichText.Content tagName="summary" value={ attributes.content } />
<InnerBlocks.Content />
</details>
);
Expand Down

0 comments on commit aa89f97

Please sign in to comment.