Skip to content

Commit

Permalink
Refactor MediaReplaceFlow to set default button variant to 'toolbar' …
Browse files Browse the repository at this point in the history
…and remove unused default variant
  • Loading branch information
yogeshbhutkar committed Dec 18, 2024
1 parent ca288fe commit f8983b1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import { store as blockEditorStore } from '../../store';
const noop = () => {};

const BUTTON_VARIANTS = {
default: ToolbarButton,
toolbar: ToolbarButton,
button: Button,
};
Expand Down Expand Up @@ -68,7 +67,7 @@ const MediaReplaceFlow = ( {
addToGallery,
handleUpload = true,
popoverProps,
buttonVariant = 'default',
buttonVariant = 'toolbar',
} ) => {
const mediaUpload = useSelect( ( select ) => {
return select( blockEditorStore ).getSettings().mediaUpload;
Expand Down

0 comments on commit f8983b1

Please sign in to comment.