mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-24 08:08:18 -05:00
Address review comments
This commit is contained in:
parent
ef801112cd
commit
0edd946fee
2 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ const projectShape = require('./projectshape.jsx').projectShape;
|
||||||
require('./preview.scss');
|
require('./preview.scss');
|
||||||
|
|
||||||
const frameless = require('../../lib/frameless');
|
const frameless = require('../../lib/frameless');
|
||||||
|
|
||||||
// disable enter key submission on formsy input fields; otherwise formsy thinks
|
// disable enter key submission on formsy input fields; otherwise formsy thinks
|
||||||
// we meant to trigger the "See inside" button. Instead, treat these keypresses
|
// we meant to trigger the "See inside" button. Instead, treat these keypresses
|
||||||
// as a blur, which will trigger a save.
|
// as a blur, which will trigger a save.
|
||||||
|
|
|
@ -110,7 +110,6 @@ class Preview extends React.Component {
|
||||||
socialOpen: false,
|
socialOpen: false,
|
||||||
favoriteCount: 0,
|
favoriteCount: 0,
|
||||||
isProjectLoaded: false,
|
isProjectLoaded: false,
|
||||||
isProjectCommentsGloballyEnabled: false,
|
|
||||||
isRemixing: false,
|
isRemixing: false,
|
||||||
invalidProject: parts.length === 1,
|
invalidProject: parts.length === 1,
|
||||||
justRemixed: false,
|
justRemixed: false,
|
||||||
|
@ -960,6 +959,7 @@ Preview.defaultProps = {
|
||||||
backpackHost: process.env.BACKPACK_HOST,
|
backpackHost: process.env.BACKPACK_HOST,
|
||||||
canUseBackpack: false,
|
canUseBackpack: false,
|
||||||
cloudHost: process.env.CLOUDDATA_HOST,
|
cloudHost: process.env.CLOUDDATA_HOST,
|
||||||
|
isProjectCommentsGloballyEnabled: false,
|
||||||
projectHost: process.env.PROJECT_HOST,
|
projectHost: process.env.PROJECT_HOST,
|
||||||
sessionStatus: sessionActions.Status.NOT_FETCHED,
|
sessionStatus: sessionActions.Status.NOT_FETCHED,
|
||||||
user: {},
|
user: {},
|
||||||
|
|
Loading…
Reference in a new issue