diff --git a/assets/src/block-validation/components/error/error-content.js b/assets/src/block-validation/components/error/error-content.js index 42198582ef0..9dd8aa4fa7b 100644 --- a/assets/src/block-validation/components/error/error-content.js +++ b/assets/src/block-validation/components/error/error-content.js @@ -177,7 +177,7 @@ BlockType.propTypes = { * * @param {Object} props Component props. * @param {Object} props.blockType Block type details. - * @param {boolean} props.external Flag indicating if the error comes from outside of post content. + * @param {boolean} props.isExternal Flag indicating if the error comes from outside of post content. * @param {boolean} props.removed Flag indicating if the block has been removed. * @param {string} props.clientId Block client ID * @param {number} props.status Number indicating the error status. @@ -188,7 +188,7 @@ export function ErrorContent( { blockType, clientId, error: { sources }, - external, + isExternal, removed, status, } ) { @@ -203,13 +203,13 @@ export function ErrorContent( { { __( 'This error is no longer detected, either because the block was removed or the editor mode was switched.', 'amp' ) }

) } - { external && ( + { isExternal && (

{ __( 'This error comes from outside the content (e.g. header or footer).', 'amp' ) }

) }
- { ! ( removed || external ) && ( + { ! ( removed || isExternal ) && ( select( BLOCK_VALIDATION_STORE_KEY ).getReviewLink(), [] ); const reviewed = status === VALIDATION_ERROR_ACK_ACCEPTED_STATUS || status === VALIDATION_ERROR_ACK_REJECTED_STATUS; const kept = status === VALIDATION_ERROR_ACK_REJECTED_STATUS || status === VALIDATION_ERROR_NEW_REJECTED_STATUS; - const external = ! Boolean( clientId ); + const isExternal = ! Boolean( clientId ); const { blockType, removed } = useSelect( ( select ) => { const blockName = select( 'core/block-editor' ).getBlockName( clientId ); @@ -80,13 +80,13 @@ export function Error( { clientId, error, status, term_id: termId, title } ) { blockType={ blockType } clientId={ clientId } error={ error } - external={ external } + isExternal={ isExternal } removed={ removed } status={ status } />
- { ! ( removed || external ) && ( + { ! ( removed || isExternal ) && (