From f8983b1cfe48d78eba22e92e7938be246d032ac7 Mon Sep 17 00:00:00 2001 From: yogeshbhutkar Date: Wed, 18 Dec 2024 15:14:43 +0530 Subject: [PATCH] Refactor MediaReplaceFlow to set default button variant to 'toolbar' and remove unused default variant --- .../block-editor/src/components/media-replace-flow/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/media-replace-flow/index.js b/packages/block-editor/src/components/media-replace-flow/index.js index d0bc111230466..c8feeddb3d19b 100644 --- a/packages/block-editor/src/components/media-replace-flow/index.js +++ b/packages/block-editor/src/components/media-replace-flow/index.js @@ -40,7 +40,6 @@ import { store as blockEditorStore } from '../../store'; const noop = () => {}; const BUTTON_VARIANTS = { - default: ToolbarButton, toolbar: ToolbarButton, button: Button, }; @@ -68,7 +67,7 @@ const MediaReplaceFlow = ( { addToGallery, handleUpload = true, popoverProps, - buttonVariant = 'default', + buttonVariant = 'toolbar', } ) => { const mediaUpload = useSelect( ( select ) => { return select( blockEditorStore ).getSettings().mediaUpload;