From acf91b088a00dce37169c8d7ac45b206d6147beb Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Mon, 30 Sep 2019 16:51:56 -0700 Subject: [PATCH] export -> exportImage --- components/Editor.js | 6 +++--- components/ExportMenu.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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()