-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract the pattern overrides toolbar indicator from the block-editor
package
#62514
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved to |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ import { unlock } from '../lock-unlock'; | |
const { | ||
PatternOverridesControls, | ||
ResetOverridesControl, | ||
PatternOverridesBlockControls, | ||
PATTERN_TYPES, | ||
PARTIAL_SYNCING_SUPPORTED_BLOCKS, | ||
PATTERN_SYNC_TYPES, | ||
|
@@ -43,6 +44,7 @@ const withPatternOverrideControls = createHigherOrderComponent( | |
{ props.isSelected && isSupportedBlock && ( | ||
<ControlsWithStoreSubscription { ...props } /> | ||
) } | ||
{ isSupportedBlock && <PatternOverridesBlockControls /> } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a shame there's no way to add a condition like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should probably add a comment there to avoid accidental regression. |
||
</> | ||
); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to
packages/patterns/src/components/pattern-overrides-block-controls.js
.