Skip to content

Commit

Permalink
Cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Feb 20, 2024
1 parent d80b1af commit 1c8b54b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion packages/block-editor/src/hooks/variation.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { useStyleOverride } from './utils';
import { store as blockEditorStore } from '../store';

export default {
hasSupport: () => true, // TODO: Work out what the eligibility here should be.
hasSupport: () => true,
attributeKeys: [ 'style' ],
passChildren: true,
useBlockProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
* Internal dependencies
*/
import { unlock } from '../../lock-unlock';
//TODO: If this these updates actually stick around. Move this to utils.
import { setNestedValue } from '../../hooks/push-changes-to-global-styles';

const { GlobalStylesContext, cleanEmptyObject } = unlock(
Expand Down Expand Up @@ -156,10 +155,6 @@ function useGlobalStylesContext() {
useGlobalStylesUserConfig();
const [ isBaseConfigReady, baseConfig ] = useGlobalStylesBaseConfig();

// TODO: Where is the right place to resolve shared block style
// variations within the site editor when they are in a theme
// style variation's data that simply gets applied to the "user"
// origin styles?
const userConfigWithVariations = useMemo( () => {
if ( ! userConfig ) {
return userConfig;
Expand Down

0 comments on commit 1c8b54b

Please sign in to comment.