fix/8363: Match checkout block Place order button UI with frontend (https://github.com/woocommerce/woocommerce-blocks/pull/9094)
Co-authored-by: Niels Lange <info@nielslange.de>
This commit is contained in:
parent
114dc821ae
commit
4743d4fd93
|
@ -93,23 +93,28 @@ export const Edit = ( {
|
|||
) }
|
||||
</InspectorControls>
|
||||
<div className="wc-block-checkout__actions">
|
||||
<Noninteractive>
|
||||
{ showReturnToCart && (
|
||||
<ReturnToCartButton
|
||||
link={ getSetting( 'page-' + cartPageId, false ) }
|
||||
/>
|
||||
) }
|
||||
</Noninteractive>
|
||||
<EditableButton
|
||||
className="wc-block-cart__submit-button wc-block-components-checkout-place-order-button"
|
||||
value={ placeOrderButtonLabel }
|
||||
placeholder={ defaultPlaceOrderButtonLabel }
|
||||
onChange={ ( content ) => {
|
||||
setAttributes( {
|
||||
placeOrderButtonLabel: content,
|
||||
} );
|
||||
} }
|
||||
/>
|
||||
<div className="wc-block-checkout__actions_row">
|
||||
<Noninteractive>
|
||||
{ showReturnToCart && (
|
||||
<ReturnToCartButton
|
||||
link={ getSetting(
|
||||
'page-' + cartPageId,
|
||||
false
|
||||
) }
|
||||
/>
|
||||
) }
|
||||
</Noninteractive>
|
||||
<EditableButton
|
||||
className="wc-block-cart__submit-button wc-block-components-checkout-place-order-button"
|
||||
value={ placeOrderButtonLabel }
|
||||
placeholder={ defaultPlaceOrderButtonLabel }
|
||||
onChange={ ( content ) => {
|
||||
setAttributes( {
|
||||
placeOrderButtonLabel: content,
|
||||
} );
|
||||
} }
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue