diff --git a/plugins/woocommerce-beta-tester/src/product-editor-dev-tools/block-inspector.tsx b/plugins/woocommerce-beta-tester/src/product-editor-dev-tools/block-inspector.tsx index 1071cb3eb1c..20182c0b937 100644 --- a/plugins/woocommerce-beta-tester/src/product-editor-dev-tools/block-inspector.tsx +++ b/plugins/woocommerce-beta-tester/src/product-editor-dev-tools/block-inspector.tsx @@ -1,3 +1,8 @@ +/** + * External dependencies + */ +import { __ } from '@wordpress/i18n'; + export function BlockInspector( { blockInfo: { blockName, templateBlockId, templateBlockOrder }, }: { @@ -9,16 +14,27 @@ export function BlockInspector( { } ) { return (
-
-
Block name
-
{ blockName }
+ { ! blockName && ( +

+ { __( + 'Focus on a block to see its details.', + 'woocommerce' + ) } +

+ ) } -
Template block id
-
{ templateBlockId }
+ { blockName && ( +
+
Block name
+
{ blockName }
-
Template block order
-
{ templateBlockOrder }
-
+
Template block id
+
{ templateBlockId }
+ +
Template block order
+
{ templateBlockOrder }
+
+ ) }
); }