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 7, 2023
1 parent e5ad9f0 commit d6ab100
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 @@ -22,6 +22,7 @@ import { __ } from '@wordpress/i18n';
import { useState, useRef } from '@wordpress/element';
import { NavigableRegion } from '@wordpress/interface';
import { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts';
import { store as prefferencesStore } from '@wordpress/preferences';

/**
* Internal dependencies
Expand Down Expand Up @@ -80,7 +81,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 d6ab100

Please sign in to comment.