Merge pull request #7742 from scratchfoundation/far-lint-fixes

far lint fixes
This commit is contained in:
Tom Lum 2023-07-13 10:39:32 -04:00 committed by GitHub
commit 2d11733ac2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 6 deletions

View file

@ -158,7 +158,7 @@ module.exports.selectIsLoggedIn = state => !!get(state, ['session', 'session', '
module.exports.selectUsername = state => get(state, ['session', 'session', 'user', 'username'], null);
module.exports.selectToken = state => get(state, ['session', 'session', 'user', 'token'], null);
module.exports.selectIsAdmin = state => get(state, ['session', 'session', 'permissions', 'admin'], false);
module.exports.selectBannedUser = state => get(state, ['session', 'session', 'user'], false);
module.exports.selectUser = state => get(state, ['session', 'session', 'user'], false);
module.exports.selectIsSocial = state => get(state, ['session', 'session', 'permissions', 'social'], false);
module.exports.selectIsEducator = state => get(state, ['session', 'session', 'permissions', 'educator'], false);
module.exports.selectProjectCommentsGloballyEnabled = state =>

View file

@ -2,7 +2,7 @@ const injectIntl = require('react-intl').injectIntl;
const React = require('react');
const FormattedMessage = require('react-intl').FormattedMessage;
import {connect} from 'react-redux';
import {selectBannedUser, selectHasFetchedSession} from '../../redux/session';
import {selectUser, selectHasFetchedSession} from '../../redux/session';
const messageActions = require('../../redux/messages.js');
const JoinFlowStep = require('../../components/join-flow/join-flow-step.jsx');
const FormikInput = require('../../components/formik-forms/formik-input.jsx');
@ -105,7 +105,13 @@ const BannedSplash = ({hasSession, user, adminMessages, getAdminMessages}) => {
<p><FormattedMessage id="renameAccount.scratchIsForKids" /></p>
<p><FormattedMessage
id="renameAccount.rememberToFollow"
values={{communityGuidelinesLink: (<a href="/community_guidelines"><FormattedMessage id="renameAccount.CommunityGuidelines" /></a>)}}
values={{
communityGuidelinesLink: (
<a href="/community_guidelines">
<FormattedMessage id="renameAccount.CommunityGuidelines" />
</a>
)
}}
/></p>
</div>)
}
@ -138,7 +144,13 @@ const BannedSplash = ({hasSession, user, adminMessages, getAdminMessages}) => {
<JoinFlowStep
description={<FormattedMessage
id="renameAccount.makeSure"
values={{communityGuidelinesLink: (<a href="/community_guidelines"><FormattedMessage id="renameAccount.scratchsCommunityGuidelines" /></a>)}}
values={{
communityGuidelinesLink: (
<a href="/community_guidelines">
<FormattedMessage id="renameAccount.scratchsCommunityGuidelines" />
</a>
)
}}
/>}
innerClassName="change-username-inner"
outerClassName="change-username-outer"
@ -253,7 +265,7 @@ BannedSplash.propTypes = {
const ConnectedBannedSplash = connect(
state => ({
user: selectBannedUser(state),
user: selectUser(state),
hasSession: selectHasFetchedSession(state),
adminMessages: state.messages.messages &&
state.messages.messages.admin &&