This commit is contained in:
Ray Elliott 2022-07-25 19:42:33 +01:00
parent 23bec4b3d9
commit 244b49243e
3 changed files with 5 additions and 17 deletions

View File

@ -4,7 +4,7 @@ export default function Orbiter( { primary, secondary, backgroundColor } ) {
<div
className="orbiter-bg"
style={ {
backgroundColor: backgroundColor,
backgroundColor,
} }
/>
<div className="orbiter-content content-center">

View File

@ -1,10 +1,3 @@
/**
* Retrieves the translation of text.
*
* @see https://developer.wordpress.org/block-editor/packages/packages-i18n/
*/
import { __ } from '@wordpress/i18n';
/**
* React hook that is used to mark the block wrapper element.
* It provides all the necessary props like the class name.
@ -37,11 +30,12 @@ export default function save( { attributes } ) {
<img
className="img-primary"
src={ attributes.imgUrl }
alt=""
data-src={ attributes.imgUrl }
/>
) : (
<span
class="img-primary"
className="img-primary"
data-src={ attributes.imgUrl }
/>
) }
@ -49,11 +43,12 @@ export default function save( { attributes } ) {
<img
className="img-secondary"
src={ attributes.imgUrlHover }
alt=""
data-src={ attributes.imgUrlHover }
/>
) : (
<span
class="img-secondary"
className="img-secondary"
data-src={ attributes.imgUrlHover }
/>
) }

View File

@ -1,10 +1,3 @@
/**
* Retrieves the translation of text.
*
* @see https://developer.wordpress.org/block-editor/packages/packages-i18n/
*/
import { __ } from '@wordpress/i18n';
/**
* React hook that is used to mark the block wrapper element.
* It provides all the necessary props like the class name.