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

Commit 72c7c21

Browse files
authored
wrap order summary block in disabled (#4720)
1 parent df12ee3 commit 72c7c21

File tree

1 file changed

+6
-2
lines changed
  • assets/js/blocks/cart-checkout/checkout-i2/inner-blocks/checkout-order-summary-block

1 file changed

+6
-2
lines changed

assets/js/blocks/cart-checkout/checkout-i2/inner-blocks/checkout-order-summary-block/edit.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
import { __ } from '@wordpress/i18n';
55
import { useBlockProps, InspectorControls } from '@wordpress/block-editor';
6-
import { PanelBody, ToggleControl } from '@wordpress/components';
6+
import { Disabled, PanelBody, ToggleControl } from '@wordpress/components';
77
import { getSetting } from '@woocommerce/settings';
88

99
/**
@@ -66,7 +66,11 @@ export const Edit = ( {
6666
</PanelBody>
6767
) }
6868
</InspectorControls>
69-
<Block showRateAfterTaxName={ attributes.showRateAfterTaxName } />
69+
<Disabled>
70+
<Block
71+
showRateAfterTaxName={ attributes.showRateAfterTaxName }
72+
/>
73+
</Disabled>
7074
</div>
7175
);
7276
};

0 commit comments

Comments
 (0)