mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
pass onUpdateProjectThumbnail to gui when on project page
This commit is contained in:
parent
ad4442a310
commit
153c749546
2 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue