Skip to content

Commit

Permalink
rename close -> closeOutline
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed Dec 10, 2018
1 parent b85b4c9 commit f0afad5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/editor/src/components/document-outline/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const DocumentOutline = ( { blocks = [], title, close, isTitleSupported }
<DocumentOutlineItem
level={ __( 'Title' ) }
isValid
close={ close }
closeOutline={ close }
href={ `#${ titleNode.id }` }
>
{ title }
Expand All @@ -111,7 +111,7 @@ export const DocumentOutline = ( { blocks = [], title, close, isTitleSupported }
level={ `H${ item.level }` }
isValid={ isValid }
path={ item.path }
close={ close }
closeOutline={ close }
href={ `#block-${ item.clientId }` }
>
{ item.isEmpty ?
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/components/document-outline/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const TableOfContentsItem = ( {
level,
path = [],
href,
close,
closeOutline,
} ) => (
<li
className={ classnames(
Expand All @@ -28,7 +28,7 @@ const TableOfContentsItem = ( {
<a
href={ href }
className="document-outline__button"
onClick={ close }
onClick={ closeOutline }
>
<span className="document-outline__emdash" aria-hidden="true"></span>
{
Expand Down

0 comments on commit f0afad5

Please sign in to comment.