diff --git a/src/blocks/activity/edit.js b/src/blocks/activity/edit.js index 3499fc1..16af596 100644 --- a/src/blocks/activity/edit.js +++ b/src/blocks/activity/edit.js @@ -1,9 +1,9 @@ /* global wp, wpStrava */ import EmbedPlaceholder from './embed-placeholder'; import EmbedControls from './embed-controls'; -const { isEmpty } = lodash; const { Component } = wp.element; +const { isEmpty } = lodash; /** * Localized Data. @@ -47,7 +47,7 @@ class Edit extends Component { return ( diff --git a/src/blocks/activity/embed-placeholder.js b/src/blocks/activity/embed-placeholder.js index c41df3a..2612b18 100644 --- a/src/blocks/activity/embed-placeholder.js +++ b/src/blocks/activity/embed-placeholder.js @@ -5,7 +5,7 @@ import { BlockIcon } from '@wordpress/editor'; const { __, _x } = wp.i18n; -const { Button, Placeholder, ExternalLink } = wp.components; +const { Button, Placeholder } = wp.components; const EmbedPlaceholder = ( props ) => { const { @@ -22,7 +22,7 @@ const EmbedPlaceholder = ( props ) => { label={ label } className="wp-block-embed" instructions={ __( - 'Paste a link to the content you want to display on your site.' + 'Paste a link to the Strava Activity you want to display on your site.' ) } >
@@ -31,22 +31,13 @@ const EmbedPlaceholder = ( props ) => { value={ value || '' } className="components-placeholder__input" aria-label={ label } - placeholder={ __( 'Enter URL to embed here…' ) } + placeholder={ __( 'Enter Activity URL to embed here…' ) } onChange={ onChange } />
-
- - { __( 'Learn more about embeds' ) } - -
); };