mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-25 05:44:13 -05:00
Fix prop-related linted errors
This commit is contained in:
parent
cf92ecca46
commit
6126ffa24c
2 changed files with 4 additions and 4 deletions
|
@ -959,6 +959,7 @@ Preview.propTypes = {
|
||||||
setLovedStatus: PropTypes.func.isRequired,
|
setLovedStatus: PropTypes.func.isRequired,
|
||||||
setPlayer: PropTypes.func.isRequired,
|
setPlayer: PropTypes.func.isRequired,
|
||||||
shareProject: PropTypes.func.isRequired,
|
shareProject: PropTypes.func.isRequired,
|
||||||
|
showEmailConfirmationBanner: PropTypes.bool,
|
||||||
toggleStudio: PropTypes.func.isRequired,
|
toggleStudio: PropTypes.func.isRequired,
|
||||||
updateProject: PropTypes.func.isRequired,
|
updateProject: PropTypes.func.isRequired,
|
||||||
useScratch3Registration: PropTypes.bool,
|
useScratch3Registration: PropTypes.bool,
|
||||||
|
@ -1015,8 +1016,9 @@ const mapStateToProps = state => {
|
||||||
(authorUsername === state.session.session.user.username ||
|
(authorUsername === state.session.session.user.username ||
|
||||||
state.permissions.admin === true);
|
state.permissions.admin === true);
|
||||||
const areCommentsOn = state.session.session.flags && selectProjectCommentsGloballyEnabled(state);
|
const areCommentsOn = state.session.session.flags && selectProjectCommentsGloballyEnabled(state);
|
||||||
const showEmailConfirmationBanner = state.session.session.flags && state.session.session.flags.has_outstanding_email_confirmation &&
|
const showEmailConfirmationBanner = state.session.session.flags &&
|
||||||
state.session.session.flags.confirm_email_banner;
|
state.session.session.flags.has_outstanding_email_confirmation &&
|
||||||
|
state.session.session.flags.confirm_email_banner;
|
||||||
|
|
||||||
// if we don't have projectInfo, assume it's shared until we know otherwise
|
// if we don't have projectInfo, assume it's shared until we know otherwise
|
||||||
const isShared = !projectInfoPresent || state.preview.projectInfo.is_published;
|
const isShared = !projectInfoPresent || state.preview.projectInfo.is_published;
|
||||||
|
|
|
@ -536,7 +536,6 @@ class SplashPresentation extends React.Component { // eslint-disable-line react/
|
||||||
SplashPresentation.propTypes = {
|
SplashPresentation.propTypes = {
|
||||||
activity: PropTypes.arrayOf(PropTypes.object),
|
activity: PropTypes.arrayOf(PropTypes.object),
|
||||||
adminPanelOpen: PropTypes.bool,
|
adminPanelOpen: PropTypes.bool,
|
||||||
emailConfirmationModalOpen: PropTypes.bool.isRequired,
|
|
||||||
featuredGlobal: PropTypes.shape({
|
featuredGlobal: PropTypes.shape({
|
||||||
community_featured_projects: PropTypes.array,
|
community_featured_projects: PropTypes.array,
|
||||||
community_featured_studios: PropTypes.array,
|
community_featured_studios: PropTypes.array,
|
||||||
|
@ -557,7 +556,6 @@ SplashPresentation.propTypes = {
|
||||||
onHideEmailConfirmationModal: PropTypes.func.isRequired,
|
onHideEmailConfirmationModal: PropTypes.func.isRequired,
|
||||||
onOpenAdminPanel: PropTypes.func.isRequired,
|
onOpenAdminPanel: PropTypes.func.isRequired,
|
||||||
onRefreshHomepageCache: PropTypes.func.isRequired,
|
onRefreshHomepageCache: PropTypes.func.isRequired,
|
||||||
onShowEmailConfirmationModal: PropTypes.func.isRequired,
|
|
||||||
refreshCacheStatus: PropTypes.object.isRequired, // eslint-disable-line react/forbid-prop-types
|
refreshCacheStatus: PropTypes.object.isRequired, // eslint-disable-line react/forbid-prop-types
|
||||||
sessionStatus: PropTypes.string.isRequired,
|
sessionStatus: PropTypes.string.isRequired,
|
||||||
sharedByFollowing: PropTypes.arrayOf(PropTypes.object),
|
sharedByFollowing: PropTypes.arrayOf(PropTypes.object),
|
||||||
|
|
Loading…
Reference in a new issue