Skip to content

Commit

Permalink
remove unrequired exports
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed May 14, 2024
1 parent afdd165 commit cea9f54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions packages/editor/src/components/post-actions/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,7 @@ import isTemplateRevertable from '../../store/utils/is-template-revertable';
import { exportPatternAsJSONAction } from './export-pattern-as-json-action';

// Patterns.
export const {
PATTERN_TYPES,
PATTERN_DEFAULT_CATEGORY,
PATTERN_USER_CATEGORY,
EXCLUDED_PATTERN_SOURCES,
PATTERN_SYNC_TYPES,
CreatePatternModalContents,
useDuplicatePatternProps,
} = unlock( patternsPrivateApis );
const { PATTERN_TYPES } = unlock( patternsPrivateApis );

function getItemTitle( item ) {
if ( typeof item.title === 'string' ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { privateApis as patternsPrivateApis } from '@wordpress/patterns';
import { unlock } from '../../lock-unlock';

// Patterns.
export const { PATTERN_TYPES } = unlock( patternsPrivateApis );
const { PATTERN_TYPES } = unlock( patternsPrivateApis );

function getJsonFromItem( item ) {
return JSON.stringify(
Expand Down

0 comments on commit cea9f54

Please sign in to comment.