Skip to content

Commit

Permalink
Blocks: Remove obsolete key props in embed block
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Feb 19, 2018
1 parent 2823dab commit 2680225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/library/embed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function getEmbedBlockSettings( { title, icon, category = 'embed', transforms, k

if ( fetching ) {
return (
<div key="loading" className="wp-block-embed is-loading">
<div className="wp-block-embed is-loading">
<Spinner />
<p>{ __( 'Embedding…' ) }</p>
</div>
Expand Down Expand Up @@ -167,7 +167,7 @@ function getEmbedBlockSettings( { title, icon, category = 'embed', transforms, k
}

return (
<figure key="embed" className={ typeClassName }>
<figure className={ typeClassName }>
{ ( cannotPreview ) ? (
<Placeholder icon={ icon } label={ __( 'Embed URL' ) }>
<p className="components-placeholder__error"><a href={ url }>{ url }</a></p>
Expand Down

0 comments on commit 2680225

Please sign in to comment.