Skip to content

Commit

Permalink
Gallery block: Remove warning notice about mobile version required (#…
Browse files Browse the repository at this point in the history
…37842)

Co-authored-by: Glen Davies <[email protected]>
  • Loading branch information
glendaviesnz and Glen Davies authored Jan 12, 2022
1 parent 62a21b8 commit 3a99ec3
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 38 deletions.
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/block-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"@wordpress/html-entities": "file:../html-entities",
"@wordpress/i18n": "file:../i18n",
"@wordpress/icons": "file:../icons",
"@wordpress/interface": "file:../interface",
"@wordpress/is-shallow-equal": "file:../is-shallow-equal",
"@wordpress/keycodes": "file:../keycodes",
"@wordpress/notices": "file:../notices",
Expand Down
7 changes: 0 additions & 7 deletions packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ import useShortCodeTransform from './use-short-code-transform';
import useGetNewImages from './use-get-new-images';
import useGetMedia from './use-get-media';

/**
* Internal dependencies
*/
import useMobileWarning from './use-mobile-warning';

const MAX_COLUMNS = 8;
const linkOptions = [
{ value: LINK_DESTINATION_ATTACHMENT, label: __( 'Attachment Page' ) },
Expand Down Expand Up @@ -149,8 +144,6 @@ function GalleryEdit( props ) {

const newImages = useGetNewImages( images, imageData );

useMobileWarning( newImages );

useEffect( () => {
newImages?.forEach( ( newImage ) => {
updateBlockAttributes( newImage.clientId, {
Expand Down
28 changes: 0 additions & 28 deletions packages/block-library/src/gallery/use-mobile-warning.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/edit-post/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export function initializeEditor(
dispatch( interfaceStore ).setFeatureDefaults( 'core/edit-post', {
fixedToolbar: false,
welcomeGuide: true,
mobileGalleryWarning: true,
fullscreenMode: true,
showIconLabels: false,
themeStyles: true,
Expand Down

0 comments on commit 3a99ec3

Please sign in to comment.