[build] upgrade eslint to 9.37.0 (#88)
Co-authored-by: tobi <tobi.smethurst@protonmail.com> Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/88 Co-authored-by: Zoë Bijl <moiety@noreply.codeberg.org> Co-committed-by: Zoë Bijl <moiety@noreply.codeberg.org>
This commit is contained in:
@@ -1,34 +1,34 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import PropTypes from "prop-types";
|
||||
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from "react-intl";
|
||||
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||
import { connect } from 'react-redux';
|
||||
import ImmutablePropTypes from "react-immutable-proptypes";
|
||||
import ImmutablePureComponent from "react-immutable-pure-component";
|
||||
import { connect } from "react-redux";
|
||||
|
||||
import { debounce } from 'lodash';
|
||||
import { debounce } from "lodash";
|
||||
|
||||
import {
|
||||
lookupAccount,
|
||||
fetchAccount,
|
||||
fetchFollowers,
|
||||
expandFollowers,
|
||||
} from 'flavours/glitch/actions/accounts';
|
||||
import { LoadingIndicator } from 'flavours/glitch/components/loading_indicator';
|
||||
import ScrollableList from 'flavours/glitch/components/scrollable_list';
|
||||
import { TimelineHint } from 'flavours/glitch/components/timeline_hint';
|
||||
import AccountContainer from 'flavours/glitch/containers/account_container';
|
||||
import ProfileColumnHeader from 'flavours/glitch/features/account/components/profile_column_header';
|
||||
import HeaderContainer from 'flavours/glitch/features/account_timeline/containers/header_container';
|
||||
import BundleColumnError from 'flavours/glitch/features/ui/components/bundle_column_error';
|
||||
import Column from 'flavours/glitch/features/ui/components/column';
|
||||
import { normalizeForLookup } from 'flavours/glitch/reducers/accounts_map';
|
||||
import { getAccountHidden } from 'flavours/glitch/selectors';
|
||||
} from "flavours/glitch/actions/accounts";
|
||||
import { LoadingIndicator } from "flavours/glitch/components/loading_indicator";
|
||||
import ScrollableList from "flavours/glitch/components/scrollable_list";
|
||||
import { TimelineHint } from "flavours/glitch/components/timeline_hint";
|
||||
import AccountContainer from "flavours/glitch/containers/account_container";
|
||||
import ProfileColumnHeader from "flavours/glitch/features/account/components/profile_column_header";
|
||||
import HeaderContainer from "flavours/glitch/features/account_timeline/containers/header_container";
|
||||
import BundleColumnError from "flavours/glitch/features/ui/components/bundle_column_error";
|
||||
import Column from "flavours/glitch/features/ui/components/column";
|
||||
import { normalizeForLookup } from "flavours/glitch/reducers/accounts_map";
|
||||
import { getAccountHidden } from "flavours/glitch/selectors";
|
||||
|
||||
import LimitedAccountHint from '../account_timeline/components/limited_account_hint';
|
||||
import LimitedAccountHint from "../account_timeline/components/limited_account_hint";
|
||||
|
||||
const mapStateToProps = (state, { params: { acct, id } }) => {
|
||||
const accountId = id || state.getIn(['accounts_map', normalizeForLookup(acct)]);
|
||||
const accountId = id || state.getIn(["accounts_map", normalizeForLookup(acct)]);
|
||||
|
||||
if (!accountId) {
|
||||
return {
|
||||
@@ -38,13 +38,13 @@ const mapStateToProps = (state, { params: { acct, id } }) => {
|
||||
|
||||
return {
|
||||
accountId,
|
||||
remote: !!(state.getIn(['accounts', accountId, 'acct']) !== state.getIn(['accounts', accountId, 'username'])),
|
||||
remoteUrl: state.getIn(['accounts', accountId, 'url']),
|
||||
isAccount: !!state.getIn(['accounts', accountId]),
|
||||
accountIds: state.getIn(['user_lists', 'followers', accountId, 'items']),
|
||||
hasMore: !!state.getIn(['user_lists', 'followers', accountId, 'next']),
|
||||
isLoading: state.getIn(['user_lists', 'followers', accountId, 'isLoading'], true),
|
||||
suspended: state.getIn(['accounts', accountId, 'suspended'], false),
|
||||
remote: !!(state.getIn(["accounts", accountId, "acct"]) !== state.getIn(["accounts", accountId, "username"])),
|
||||
remoteUrl: state.getIn(["accounts", accountId, "url"]),
|
||||
isAccount: !!state.getIn(["accounts", accountId]),
|
||||
accountIds: state.getIn(["user_lists", "followers", accountId, "items"]),
|
||||
hasMore: !!state.getIn(["user_lists", "followers", accountId, "next"]),
|
||||
isLoading: state.getIn(["user_lists", "followers", accountId, "isLoading"], true),
|
||||
suspended: state.getIn(["accounts", accountId, "suspended"], false),
|
||||
hidden: getAccountHidden(state, accountId),
|
||||
};
|
||||
};
|
||||
@@ -80,7 +80,9 @@ class Followers extends ImmutablePureComponent {
|
||||
_load () {
|
||||
const { accountId, isAccount, dispatch } = this.props;
|
||||
|
||||
if (!isAccount) dispatch(fetchAccount(accountId));
|
||||
if (!isAccount) {
|
||||
dispatch(fetchAccount(accountId));
|
||||
}
|
||||
dispatch(fetchFollowers(accountId));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user