Merge pull request #2500 from benjiwheeler/pass-thumbnail

pass onUpdateProjectThumbnail to gui when on project page
This commit is contained in:
Paul Kaplan 2018-12-17 15:50:18 -05:00 committed by GitHub
commit d9c37318c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>