This commit is contained in:
Alba Rincón 2023-03-16 14:57:54 +01:00 committed by GitHub
parent 235b37a626
commit dca03c3323
2 changed files with 22 additions and 17 deletions

View File

@ -9,7 +9,11 @@
"html": false,
"multiple": false,
"reusable": false,
"inserter": true
"inserter": true,
"color": {
"text": true,
"background": true
}
},
"attributes": {
"lock": {

View File

@ -22,22 +22,23 @@ export const Edit = ( {
const { startShoppingButtonLabel } = attributes;
return (
<div { ...blockProps }>
<div className="wp-block-button aligncenter">
<Button className="wc-block-mini-cart__shopping-button">
<RichText
multiline={ false }
allowedFormats={ [] }
value={ startShoppingButtonLabel }
placeholder={ defaultStartShoppingButtonLabel }
onChange={ ( content ) => {
setAttributes( {
startShoppingButtonLabel: content,
} );
} }
/>
</Button>
</div>
<div className="wp-block-button aligncenter">
<Button
{ ...blockProps }
className="wc-block-mini-cart__shopping-button"
>
<RichText
multiline={ false }
allowedFormats={ [] }
value={ startShoppingButtonLabel }
placeholder={ defaultStartShoppingButtonLabel }
onChange={ ( content ) => {
setAttributes( {
startShoppingButtonLabel: content,
} );
} }
/>
</Button>
</div>
);
};