Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit adf99ea

Browse files
authored
Merge pull request draft-js-plugins#601 from Radivarig/patch-2
Changed export default from varname to expression
2 parents 479f6c9 + fcee0df commit adf99ea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

draft-js-undo-plugin/src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const defaultTheme = {
88
undo: styles.button,
99
};
1010

11-
const historyPlugin = (config = {}) => {
11+
export default (config = {}) => {
1212
const undoContent = config.undoContent ? config.undoContent : '↺';
1313
const redoContent = config.redoContent ? config.redoContent : '↻';
1414
const store = {
@@ -32,5 +32,3 @@ const historyPlugin = (config = {}) => {
3232
},
3333
};
3434
};
35-
36-
export default historyPlugin;

0 commit comments

Comments
 (0)