Skip to content

Commit

Permalink
BlockAlignmentToolbar: getSettings -> getThemeSupports
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jun 30, 2020
1 parent 8136ce7 commit ac423c9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ export function BlockAlignmentToolbar( {

export default compose(
withSelect( ( select ) => {
const { getSettings } = select( 'core/block-editor' );
const settings = getSettings();
const { getThemeSupports } = select( 'core' );
const themeSupports = getThemeSupports();
return {
wideControlsEnabled: settings.alignWide,
wideControlsEnabled: themeSupports.alignWide,
};
} )
)( BlockAlignmentToolbar );

0 comments on commit ac423c9

Please sign in to comment.