Skip to content

Commit

Permalink
use preference store to look for top toolbar pref in site editor
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Apr 10, 2023
1 parent f27b6b8 commit e4c3f2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/edit-site/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { useState, useRef } from '@wordpress/element';
import { NavigableRegion } from '@wordpress/interface';
import { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts';
import { CommandMenu } from '@wordpress/commands';
import { store as prefferencesStore } from '@wordpress/preferences';

/**
* Internal dependencies
Expand Down Expand Up @@ -83,7 +84,7 @@ export default function Layout() {
'core/edit-site/next-region'
),
hasFixedToolbar:
select( editSiteStore ).isFeatureActive( 'fixedToolbar' ),
select( prefferencesStore ).get( 'fixedToolbar' ),
};
}, [] );
const navigateRegionsProps = useNavigateRegions( {
Expand Down

0 comments on commit e4c3f2b

Please sign in to comment.