mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -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,
|
||||
setPlayer: PropTypes.func.isRequired,
|
||||
shareProject: PropTypes.func.isRequired,
|
||||
showEmailConfirmationBanner: PropTypes.bool,
|
||||
toggleStudio: PropTypes.func.isRequired,
|
||||
updateProject: PropTypes.func.isRequired,
|
||||
useScratch3Registration: PropTypes.bool,
|
||||
|
@ -1015,8 +1016,9 @@ const mapStateToProps = state => {
|
|||
(authorUsername === state.session.session.user.username ||
|
||||
state.permissions.admin === true);
|
||||
const areCommentsOn = state.session.session.flags && selectProjectCommentsGloballyEnabled(state);
|
||||
const showEmailConfirmationBanner = state.session.session.flags && state.session.session.flags.has_outstanding_email_confirmation &&
|
||||
state.session.session.flags.confirm_email_banner;
|
||||
const showEmailConfirmationBanner = state.session.session.flags &&
|
||||
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
|
||||
const isShared = !projectInfoPresent || state.preview.projectInfo.is_published;
|
||||
|
|
|
@ -536,7 +536,6 @@ class SplashPresentation extends React.Component { // eslint-disable-line react/
|
|||
SplashPresentation.propTypes = {
|
||||
activity: PropTypes.arrayOf(PropTypes.object),
|
||||
adminPanelOpen: PropTypes.bool,
|
||||
emailConfirmationModalOpen: PropTypes.bool.isRequired,
|
||||
featuredGlobal: PropTypes.shape({
|
||||
community_featured_projects: PropTypes.array,
|
||||
community_featured_studios: PropTypes.array,
|
||||
|
@ -557,7 +556,6 @@ SplashPresentation.propTypes = {
|
|||
onHideEmailConfirmationModal: PropTypes.func.isRequired,
|
||||
onOpenAdminPanel: PropTypes.func.isRequired,
|
||||
onRefreshHomepageCache: PropTypes.func.isRequired,
|
||||
onShowEmailConfirmationModal: PropTypes.func.isRequired,
|
||||
refreshCacheStatus: PropTypes.object.isRequired, // eslint-disable-line react/forbid-prop-types
|
||||
sessionStatus: PropTypes.string.isRequired,
|
||||
sharedByFollowing: PropTypes.arrayOf(PropTypes.object),
|
||||
|
|
Loading…
Reference in a new issue