Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

fix/8363: Match editor "Place Order" button UI with frontend #9094

Merged
merged 4 commits into from
Apr 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
Expand Down