Fix Payment Options settings crash in the editor (https://github.com/woocommerce/woocommerce-blocks/pull/8535)

This commit is contained in:
Saad Tarhi 2023-02-24 16:08:19 +01:00 committed by GitHub
parent 48e30f868e
commit 9bfc8a633c
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import { __ } from '@wordpress/i18n';
import { Icon, external } from '@wordpress/icons';
import { VisuallyHidden } from '@wordpress/components';
import { sanitizeHTML } from '@woocommerce/utils';
import { alert } from '@woocommerce/icons';
import { Alert } from '@woocommerce/icons';
/**
* Internal dependencies
@ -50,7 +50,7 @@ const ExternalLinkCard = ( {
) }
{ warning ? (
<span className="wc-block-editor-components-external-link-card__warning">
<Icon icon={ alert } />
<Icon icon={ <Alert status="error" /> } />
<span>{ warning }</span>
</span>
) : null }