Merge pull request #2120 from rschamp/enable-share

Add placeholder share handler
This commit is contained in:
Ray Schamp 2018-09-26 21:49:38 -04:00 committed by GitHub
commit 3f9de0cab2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -246,6 +246,9 @@ class Preview extends React.Component {
handleSeeInside () { handleSeeInside () {
this.props.setPlayer(false); this.props.setPlayer(false);
} }
handleShare () {
// This is just a placeholder, but enables the button in the editor
}
handleUpdate (jsonData) { handleUpdate (jsonData) {
this.props.updateProject( this.props.updateProject(
this.props.projectInfo.id, this.props.projectInfo.id,
@ -338,6 +341,7 @@ class Preview extends React.Component {
renderLogin={this.renderLogin} renderLogin={this.renderLogin}
onLogOut={this.props.handleLogOut} onLogOut={this.props.handleLogOut}
onOpenRegistration={this.props.handleOpenRegistration} onOpenRegistration={this.props.handleOpenRegistration}
onShare={this.handleShare}
onToggleLoginOpen={this.props.handleToggleLoginOpen} onToggleLoginOpen={this.props.handleToggleLoginOpen}
onUpdateProjectTitle={this.handleUpdateProjectTitle} onUpdateProjectTitle={this.handleUpdateProjectTitle}
/> />