mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 23:57:55 -05:00
Pass feature flag to GUI component
This commit is contained in:
parent
5a7049c4cc
commit
6b2b03b6dd
2 changed files with 5 additions and 1 deletions
|
@ -83,6 +83,7 @@ const PreviewPresentation = ({
|
|||
isRemixing,
|
||||
isScratcher,
|
||||
isShared,
|
||||
isTotallyNormal,
|
||||
justRemixed,
|
||||
justShared,
|
||||
loveCount,
|
||||
|
@ -357,6 +358,7 @@ const PreviewPresentation = ({
|
|||
cloudHost={cloudHost}
|
||||
hasCloudPermission={isScratcher}
|
||||
isFullScreen={isFullScreen}
|
||||
isTotallyNormal={isTotallyNormal}
|
||||
previewInfoVisible="false"
|
||||
projectHost={projectHost}
|
||||
projectId={projectId}
|
||||
|
@ -722,7 +724,6 @@ PreviewPresentation.propTypes = {
|
|||
favoriteCount: PropTypes.number,
|
||||
intl: intlShape,
|
||||
isAdmin: PropTypes.bool,
|
||||
isTotallyNormal: PropTypes.bool, // eslint-disable-line react/no-unused-prop-types
|
||||
isFullScreen: PropTypes.bool,
|
||||
isLoggedIn: PropTypes.bool,
|
||||
isNewScratcher: PropTypes.bool,
|
||||
|
@ -731,6 +732,7 @@ PreviewPresentation.propTypes = {
|
|||
isRemixing: PropTypes.bool,
|
||||
isScratcher: PropTypes.bool,
|
||||
isShared: PropTypes.bool,
|
||||
isTotallyNormal: PropTypes.bool,
|
||||
justRemixed: PropTypes.bool,
|
||||
justShared: PropTypes.bool,
|
||||
loveCount: PropTypes.number,
|
||||
|
|
|
@ -768,6 +768,7 @@ class Preview extends React.Component {
|
|||
isRemixing={this.state.isRemixing}
|
||||
isScratcher={this.props.isScratcher}
|
||||
isShared={this.props.isShared}
|
||||
isTotallyNormal={this.props.isTotallyNormal}
|
||||
justRemixed={this.state.justRemixed}
|
||||
justShared={this.state.justShared}
|
||||
loveCount={this.state.loveCount}
|
||||
|
@ -848,6 +849,7 @@ class Preview extends React.Component {
|
|||
enableCommunity={this.props.enableCommunity}
|
||||
hasCloudPermission={this.props.isScratcher}
|
||||
isShared={this.props.isShared}
|
||||
isTotallyNormal={this.props.isTotallyNormal}
|
||||
projectHost={this.props.projectHost}
|
||||
projectId={this.state.projectId}
|
||||
projectTitle={this.props.projectInfo.title}
|
||||
|
|
Loading…
Reference in a new issue