update
This commit is contained in:
parent
23bec4b3d9
commit
244b49243e
|
@ -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">
|
||||
|
|
|
@ -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 }
|
||||
/>
|
||||
) }
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue