Commit 295c1df2 authored by Ray Schamp's avatar Ray Schamp

Hook up onClickLogo in GUI

This way it will take us to where we expect on staging and production.

Resolves #2296
parent eb0c98b9
......@@ -42,6 +42,7 @@ class Preview extends React.Component {
'addEventListeners',
'fetchCommunityData',
'handleAddComment',
'handleClickLogo',
'handleCopyProjectLink',
'handleDeleteComment',
'handleToggleStudio',
......@@ -297,6 +298,9 @@ class Preview extends React.Component {
handleDeleteComment (id, topLevelCommentId) {
this.props.handleDeleteComment(this.state.projectId, id, topLevelCommentId, this.props.user.token);
}
handleClickLogo () {
window.location = '/';
}
handleCloseAdminPanel () {
this.setState({adminPanelOpen: false});
if (localStorageAvailable) {
......@@ -662,6 +666,7 @@ class Preview extends React.Component {
projectId={this.state.projectId}
projectTitle={this.props.projectInfo.title}
renderLogin={this.renderLogin}
onClickLogo={this.handleClickLogo}
onGreenFlag={this.handleGreenFlag}
onLogOut={this.props.handleLogOut}
onOpenRegistration={this.props.handleOpenRegistration}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment