pass onUpdateProjectThumbnail to gui when on project page

This commit is contained in:
Ben Wheeler 2018-12-17 15:36:09 -05:00
parent ad4442a310
commit 153c749546
2 changed files with 4 additions and 0 deletions

View file

@ -103,6 +103,7 @@ const PreviewPresentation = ({
onToggleStudio,
onUpdate,
onUpdateProjectId,
onUpdateProjectThumbnail,
originalInfo,
parentInfo,
showCloudDataAlert,
@ -297,6 +298,7 @@ const PreviewPresentation = ({
onGreenFlag={onGreenFlag}
onRemixing={onRemixing}
onUpdateProjectId={onUpdateProjectId}
onUpdateProjectThumbnail={onUpdateProjectThumbnail}
/>
</div>
<MediaQuery maxWidth={frameless.tablet - 1}>
@ -643,6 +645,7 @@ PreviewPresentation.propTypes = {
onToggleStudio: PropTypes.func,
onUpdate: PropTypes.func,
onUpdateProjectId: PropTypes.func,
onUpdateProjectThumbnail: PropTypes.func,
originalInfo: projectShape,
parentInfo: projectShape,
projectHost: PropTypes.string,

View file

@ -640,6 +640,7 @@ class Preview extends React.Component {
onToggleStudio={this.handleToggleStudio}
onUpdate={this.handleUpdate}
onUpdateProjectId={this.handleUpdateProjectId}
onUpdateProjectThumbnail={this.props.handleUpdateProjectThumbnail}
/>
</Page> :
<React.Fragment>