Address review comments

This commit is contained in:
picklesrus 2021-06-09 09:08:16 -04:00
parent ef801112cd
commit 0edd946fee
2 changed files with 2 additions and 1 deletions

View file

@ -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.

View file

@ -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: {},