diff --git a/components/Editor.js b/components/Editor.js index ea5acad..a898158 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -54,7 +54,7 @@ class Editor extends React.Component { loading: true } - this.export = this.export.bind(this) + this.export = this.exportImage.bind(this) this.upload = this.upload.bind(this) this.updateSetting = this.updateSetting.bind(this) this.updateLanguage = this.updateLanguage.bind(this) @@ -223,7 +223,7 @@ class Editor extends React.Component { } } - export(format = 'png', options = {}) { + exportImage(format = 'png', options = {}) { const link = document.createElement('a') const prefix = options.filename || 'carbon' @@ -396,7 +396,7 @@ class Editor extends React.Component { diff --git a/components/ExportMenu.js b/components/ExportMenu.js index c78fccc..c25d2b4 100644 --- a/components/ExportMenu.js +++ b/components/ExportMenu.js @@ -67,7 +67,7 @@ function ExportMenu({ exportSize, isVisible, toggleVisibility, - export: exportImage + exportImage }) { const tooLarge = React.useMemo(() => !verifyPayloadSize(backgroundImage), [backgroundImage]) const online = useOnline()