From 1ad9a95a3d264ad76be7b1d72a0ea4e6ee19777b Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Wed, 26 Sep 2018 21:42:44 -0400 Subject: [PATCH] Add placeholder share handler Having the `onShare` prop defined to a function enables the button in the GUI --- src/views/preview/preview.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/preview/preview.jsx b/src/views/preview/preview.jsx index bbd7a9490..03f4fe48d 100644 --- a/src/views/preview/preview.jsx +++ b/src/views/preview/preview.jsx @@ -246,6 +246,9 @@ class Preview extends React.Component { handleSeeInside () { this.props.setPlayer(false); } + handleShare () { + // This is just a placeholder, but enables the button in the editor + } handleUpdate (jsonData) { this.props.updateProject( this.props.projectInfo.id, @@ -338,6 +341,7 @@ class Preview extends React.Component { renderLogin={this.renderLogin} onLogOut={this.props.handleLogOut} onOpenRegistration={this.props.handleOpenRegistration} + onShare={this.handleShare} onToggleLoginOpen={this.props.handleToggleLoginOpen} onUpdateProjectTitle={this.handleUpdateProjectTitle} />