Skip to content

Commit

Permalink
Restore the browse all button in the site editor (#47054)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Jan 11, 2023
1 parent 85eb13a commit f0abb29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/edit-site/src/components/block-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,20 @@ const LAYOUT = {
alignments: [],
};

export default function BlockEditor( { setIsInserterOpen } ) {
export default function BlockEditor() {
const { setPage, setIsInserterOpened } = useDispatch( editSiteStore );
const { storedSettings, templateType, canvasMode } = useSelect(
( select ) => {
const { getSettings, getEditedPostType, __unstableGetCanvasMode } =
select( editSiteStore );

return {
storedSettings: getSettings( setIsInserterOpen ),
storedSettings: getSettings( setIsInserterOpened ),
templateType: getEditedPostType(),
canvasMode: __unstableGetCanvasMode(),
};
},
[ setIsInserterOpen ]
[ setIsInserterOpened ]
);

const settingsBlockPatterns =
Expand Down Expand Up @@ -136,7 +137,6 @@ export default function BlockEditor( { setIsInserterOpen } ) {
'postType',
templateType
);
const { setPage } = useDispatch( editSiteStore );

const contentRef = useRef();
const mergedRefs = useMergeRefs( [
Expand Down

1 comment on commit f0abb29

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in f0abb29.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3892284173
📝 Reported issues:

Please sign in to comment.