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, "html": false,
"multiple": false, "multiple": false,
"reusable": false, "reusable": false,
"inserter": true "inserter": true,
"color": {
"text": true,
"background": true
}
}, },
"attributes": { "attributes": {
"lock": { "lock": {

View File

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