From c8de7a9cba27202e6fa6c545fa490015eaad68b1 Mon Sep 17 00:00:00 2001 From: Matt Chowning Date: Wed, 23 Mar 2022 10:05:51 -0400 Subject: [PATCH 1/2] Remove error banners from native media&text and audio blocks --- packages/block-library/src/audio/edit.native.js | 5 ----- .../src/media-text/media-container.native.js | 15 +-------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/packages/block-library/src/audio/edit.native.js b/packages/block-library/src/audio/edit.native.js index a08fbe75f59f97..c6362c522bba31 100644 --- a/packages/block-library/src/audio/edit.native.js +++ b/packages/block-library/src/audio/edit.native.js @@ -66,10 +66,6 @@ function AudioEdit( { const { createErrorNotice } = useDispatch( noticesStore ); - const onError = () => { - createErrorNotice( __( 'Failed to insert audio file.' ) ); - }; - function toggleAttribute( attribute ) { return ( newValue ) => { setAttributes( { [ attribute ]: newValue } ); @@ -144,7 +140,6 @@ function AudioEdit( { { - const { createErrorNotice } = dispatch( noticesStore ); - - return { createErrorNotice }; - } ), - withPreferredColorScheme, -] )( MediaContainer ); +export default compose( [ withPreferredColorScheme ] )( MediaContainer ); From a7101873a71f8507124f736ba8c6229fddfba8c4 Mon Sep 17 00:00:00 2001 From: Matt Chowning Date: Fri, 1 Apr 2022 12:46:35 -0400 Subject: [PATCH 2/2] Update changelog --- packages/react-native-editor/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native-editor/CHANGELOG.md b/packages/react-native-editor/CHANGELOG.md index b8647576b773ed..ca168b14b99835 100644 --- a/packages/react-native-editor/CHANGELOG.md +++ b/packages/react-native-editor/CHANGELOG.md @@ -11,6 +11,8 @@ For each user feature we should also add a importance categorization label to i ## Unreleased +- [*] Remove banner error notification on upload failure [#39694] + ## 1.73.0 - [*] Update react-native-reanimated version to 2.4.1 [#39430]