tidy up
This commit is contained in:
parent
b2f3f66d1c
commit
39d2251c65
|
@ -1,19 +1,6 @@
|
||||||
import { useSelect, dispatch } from "@wordpress/data";
|
import { useSelect, dispatch } from "@wordpress/data";
|
||||||
import { useState } from "@wordpress/element";
|
import { useState } from "@wordpress/element";
|
||||||
import {
|
import { useBlockProps, InnerBlocks } from "@wordpress/block-editor";
|
||||||
useBlockProps,
|
|
||||||
InnerBlocks,
|
|
||||||
InspectorControls,
|
|
||||||
MediaPlaceholder,
|
|
||||||
} from "@wordpress/block-editor";
|
|
||||||
import {
|
|
||||||
__experimentalNumberControl as NumberControl,
|
|
||||||
Button,
|
|
||||||
ToggleControl,
|
|
||||||
Panel,
|
|
||||||
PanelBody,
|
|
||||||
PanelRow,
|
|
||||||
} from "@wordpress/components";
|
|
||||||
import { getSaveElement, createBlock } from "@wordpress/blocks";
|
import { getSaveElement, createBlock } from "@wordpress/blocks";
|
||||||
|
|
||||||
import "./editor.scss";
|
import "./editor.scss";
|
||||||
|
@ -119,12 +106,12 @@ export default function Edit({ attributes, setAttributes, clientId }) {
|
||||||
|
|
||||||
<div className="inner-content">
|
<div className="inner-content">
|
||||||
<div className="image-hover">
|
<div className="image-hover">
|
||||||
{ attributes.imgUrl !== '' ? (
|
{attributes.imgUrl !== "" ? (
|
||||||
<img src={attributes.imgUrl} />
|
<img src={attributes.imgUrl} />
|
||||||
) : null }
|
) : null}
|
||||||
{ attributes.imgUrlHover !== '' ? (
|
{attributes.imgUrlHover !== "" ? (
|
||||||
<img src={attributes.imgUrlHover} />
|
<img src={attributes.imgUrlHover} />
|
||||||
) : null }
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue