Skip to content

Commit

Permalink
use the new function in the sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Jul 4, 2024
1 parent 002915c commit 90d3084
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ import useGlobalStylesRevisions from '../global-styles/screen-revisions/use-glob
import SidebarNavigationScreenDetailsFooter from '../sidebar-navigation-screen-details-footer';
import ColorVariations from '../global-styles/variations/variations-color';
import TypographyVariations from '../global-styles/variations/variations-typography';
import {
useColorVariations,
useTypographyVariations,
} from '../global-styles/hooks';
import { useCurrentMergeThemeStyleVariationsWithUserConfig } from '../../hooks/use-theme-style-variations/use-theme-style-variations-by-property';

const noop = () => {};

Expand Down Expand Up @@ -75,8 +72,12 @@ function SidebarNavigationScreenGlobalStylesContent() {
};
}, [] );

const colorVariations = useColorVariations();
const typographyVariations = useTypographyVariations();
const colorVariations = useCurrentMergeThemeStyleVariationsWithUserConfig( [
'color',
] );
const typographyVariations =
useCurrentMergeThemeStyleVariationsWithUserConfig( [ 'typography' ] );

const gap = 3;

// Wrap in a BlockEditorProvider to ensure that the Iframe's dependencies are
Expand Down

0 comments on commit 90d3084

Please sign in to comment.