Skip to content

Commit

Permalink
Restore the browse all button in the site editor
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jan 11, 2023
1 parent 85eb13a commit c0b65d7
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

0 comments on commit c0b65d7

Please sign in to comment.