Skip to content

Commit

Permalink
Update existing usage in native files
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Dec 13, 2024
1 parent 2457a6d commit 7f1d0ac
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { View } from '@wordpress/primitives';
import { Icon } from '@wordpress/components';
import { withPreferredColorScheme } from '@wordpress/compose';
import { __ } from '@wordpress/i18n';
import { audio, warning } from '@wordpress/icons';
import { audio, cautionFilled } from '@wordpress/icons';
import {
requestImageFailedRetryDialog,
requestImageUploadCancelDialog,
Expand Down Expand Up @@ -167,7 +167,7 @@ function Player( {
<View style={ styles.subtitleContainer }>
{ isUploadFailed && (
<Icon
icon={ warning }
icon={ cautionFilled }
style={ {
...styles.errorIcon,
...uploadFailedStyle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { speak } from '@wordpress/a11y';
import { __ } from '@wordpress/i18n';
import { useEffect } from '@wordpress/element';
import { usePreferredColorSchemeStyle } from '@wordpress/compose';
import { Icon, warning } from '@wordpress/icons';
import { Icon, cautionFilled } from '@wordpress/icons';
/**
* Internal dependencies
*/
Expand Down Expand Up @@ -52,7 +52,7 @@ function ContrastCheckerMessage( {

return (
<View style={ styles[ 'block-editor-contrast-checker' ] }>
<Icon style={ iconStyle } icon={ warning } />
<Icon style={ iconStyle } icon={ cautionFilled } />
<Text style={ msgStyle }>{ msg }</Text>
</View>
);
Expand Down
7 changes: 5 additions & 2 deletions packages/block-library/src/cover/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import {
useCallback,
useMemo,
} from '@wordpress/element';
import { cover as icon, replace, image, warning } from '@wordpress/icons';
import { cover as icon, replace, image, cautionFilled } from '@wordpress/icons';
import { getProtocol } from '@wordpress/url';
// eslint-disable-next-line no-restricted-imports
import { store as editPostStore } from '@wordpress/edit-post';
Expand Down Expand Up @@ -665,7 +665,10 @@ const Cover = ( {
style={ styles.uploadFailedContainer }
>
<View style={ styles.uploadFailed }>
<Icon icon={ warning } { ...styles.uploadFailedIcon } />
<Icon
icon={ cautionFilled }
{ ...styles.uploadFailedIcon }
/>
</View>
</View>
) }
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/components/error-boundary/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
usePreferredColorSchemeStyle,
withPreferredColorScheme,
} from '@wordpress/compose';
import { warning } from '@wordpress/icons';
import { cautionFilled } from '@wordpress/icons';
import { Icon } from '@wordpress/components';

/**
Expand Down Expand Up @@ -141,7 +141,7 @@ class ErrorBoundary extends Component {
<View style={ styles[ 'error-boundary__container' ] }>
<View style={ iconContainerStyle }>
<Icon
icon={ warning }
icon={ cautionFilled }
{ ...styles[ 'error-boundary__icon' ] }
/>
</View>
Expand Down

0 comments on commit 7f1d0ac

Please sign in to comment.