Skip to content

Commit

Permalink
More tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Feb 22, 2019
1 parent c641e1f commit f5e3135
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/block-library/src/html/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class HTMLEdit extends Component {
}
}
export default withSelect( ( select ) => {
const { getEditorSettings } = select( 'core/editor' );
const { getEditorSettings } = select( 'core/block-editor' );
return {
styles: getEditorSettings().styles,
};
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/block-draggable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const BlockDraggable = ( { children, clientId, rootClientId, blockElementId, ind
};

export default withSelect( ( select, { clientId } ) => {
const { getBlockIndex, getBlockRootClientId } = select( 'core/blokc-editor' );
const { getBlockIndex, getBlockRootClientId } = select( 'core/block-editor' );
const rootClientId = getBlockRootClientId( clientId );
return {
index: getBlockIndex( clientId, rootClientId ),
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/components/editor-history/redo.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ function EditorHistoryRedo( { hasRedo, redo } ) {

export default compose( [
withSelect( ( select ) => ( {
hasRedo: select( 'core/block-editor' ).hasEditorRedo(),
hasRedo: select( 'core/editor' ).hasEditorRedo(),
} ) ),
withDispatch( ( dispatch ) => ( {
redo: dispatch( 'core/block-editor' ).redo,
redo: dispatch( 'core/editor' ).redo,
} ) ),
] )( EditorHistoryRedo );
4 changes: 2 additions & 2 deletions packages/editor/src/components/editor-history/undo.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ function EditorHistoryUndo( { hasUndo, undo } ) {

export default compose( [
withSelect( ( select ) => ( {
hasUndo: select( 'core/block-editor' ).hasEditorUndo(),
hasUndo: select( 'core/editor' ).hasEditorUndo(),
} ) ),
withDispatch( ( dispatch ) => ( {
undo: dispatch( 'core/block-editor' ).undo,
undo: dispatch( 'core/editor' ).undo,
} ) ),
] )( EditorHistoryUndo );
4 changes: 2 additions & 2 deletions packages/editor/src/components/post-title/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ const applyWithDispatch = withDispatch( ( dispatch ) => {
const {
insertDefaultBlock,
clearSelectedBlock,
undo,
redo,
} = dispatch( 'core/block-editor' );
const {
editPost,
undo,
redo,
} = dispatch( 'core/editor' );

return {
Expand Down

0 comments on commit f5e3135

Please sign in to comment.