@@ -135,6 +145,7 @@ const PreviewPresentation = ({
previewInfoVisible="false"
projectHost={projectHost}
projectId={projectId}
+ projectTitle={projectInfo.title}
/>
diff --git a/src/views/preview/preview.jsx b/src/views/preview/preview.jsx
index a9bb1275e..59f79cccc 100644
--- a/src/views/preview/preview.jsx
+++ b/src/views/preview/preview.jsx
@@ -42,6 +42,7 @@ class Preview extends React.Component {
'handleAddToStudioClick',
'handleAddToStudioClose',
'handleSeeInside',
+ 'handleUpdateProjectTitle',
'handleUpdate',
'initCounts',
'isShared',
@@ -277,6 +278,11 @@ class Preview extends React.Component {
this.props.user.token
);
}
+ handleUpdateProjectTitle (title) {
+ this.handleUpdate({
+ title: title
+ });
+ }
initCounts (favorites, loves) {
this.setState({
favoriteCount: favorites,
@@ -456,7 +462,6 @@ const consolidateStudiosInfo = (curatedStudios, projectStudios, currentStudioIds
};
const mapStateToProps = state => ({
- projectInfo: state.preview.projectInfo,
comments: state.preview.comments,
faved: state.preview.faved,
loved: state.preview.loved,
@@ -465,6 +470,7 @@ const mapStateToProps = state => ({
remixes: state.preview.remixes,
replies: state.preview.replies,
sessionStatus: state.session.status,
+ projectInfo: state.preview.projectInfo,
projectStudios: state.preview.projectStudios,
studios: consolidateStudiosInfo(state.preview.curatedStudios,
state.preview.projectStudios, state.preview.currentStudioIds,