Skip to content

Commit

Permalink
Renamed isCurrentEntityType to isCurrentBlockType
Browse files Browse the repository at this point in the history
  • Loading branch information
albertomr86 committed Jun 10, 2018
1 parent e266be3 commit a1fbc0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export const getCurrentBlock = (editorState) => {
return block;
};

export const isCurrentEntityType = (editorState, entityType) => {
return getCurrentBlock(editorState).getType() === entityType;
export const isCurrentBlockType = (editorState, blockType) => {
return getCurrentBlock(editorState).getType() === blockType;
};

export const isBlockWithEntityType = (editorState, block, entityType) => {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export {
getCurrentBlock,
isCurrentEntityType,
isCurrentBlockType,
isBlockWithEntityType
} from './editor';

Expand Down

0 comments on commit a1fbc0e

Please sign in to comment.