Fix prop-related linted errors

This commit is contained in:
seotts 2021-11-22 14:00:55 -05:00
parent cf92ecca46
commit 6126ffa24c
2 changed files with 4 additions and 4 deletions

View file

@ -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,7 +1016,8 @@ 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 &&
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

View file

@ -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),