[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:
+6
-6
@@ -1,17 +1,17 @@
|
||||
import { injectIntl } from 'react-intl';
|
||||
import { injectIntl } from "react-intl";
|
||||
|
||||
import { connect } from 'react-redux';
|
||||
import { connect } from "react-redux";
|
||||
|
||||
import { pinAccount, unpinAccount } from 'flavours/glitch/actions/accounts';
|
||||
import Account from 'flavours/glitch/features/list_editor/components/account';
|
||||
import { makeGetAccount } from 'flavours/glitch/selectors';
|
||||
import { pinAccount, unpinAccount } from "flavours/glitch/actions/accounts";
|
||||
import Account from "flavours/glitch/features/list_editor/components/account";
|
||||
import { makeGetAccount } from "flavours/glitch/selectors";
|
||||
|
||||
const makeMapStateToProps = () => {
|
||||
const getAccount = makeGetAccount();
|
||||
|
||||
const mapStateToProps = (state, { accountId, added }) => ({
|
||||
account: getAccount(state, accountId),
|
||||
added: typeof added === 'undefined' ? state.getIn(['pinnedAccountsEditor', 'accounts', 'items']).includes(accountId) : added,
|
||||
added: typeof added === "undefined" ? state.getIn(["pinnedAccountsEditor", "accounts", "items"]).includes(accountId) : added,
|
||||
});
|
||||
|
||||
return mapStateToProps;
|
||||
|
||||
+5
-5
@@ -1,18 +1,18 @@
|
||||
import { injectIntl } from 'react-intl';
|
||||
import { injectIntl } from "react-intl";
|
||||
|
||||
import { connect } from 'react-redux';
|
||||
import { connect } from "react-redux";
|
||||
|
||||
import Search from 'flavours/glitch/features/list_editor/components/search';
|
||||
import Search from "flavours/glitch/features/list_editor/components/search";
|
||||
|
||||
import {
|
||||
fetchPinnedAccountsSuggestions,
|
||||
clearPinnedAccountsSuggestions,
|
||||
changePinnedAccountsSuggestions,
|
||||
} from '../../../actions/accounts';
|
||||
} from "../../../actions/accounts";
|
||||
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
value: state.getIn(['pinnedAccountsEditor', 'suggestions', 'value']),
|
||||
value: state.getIn(["pinnedAccountsEditor", "suggestions", "value"]),
|
||||
});
|
||||
|
||||
const mapDispatchToProps = dispatch => ({
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import PropTypes from "prop-types";
|
||||
|
||||
import { injectIntl, FormattedMessage } from 'react-intl';
|
||||
import { injectIntl, 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 spring from 'react-motion/lib/spring';
|
||||
import spring from "react-motion/lib/spring";
|
||||
|
||||
import { fetchPinnedAccounts, clearPinnedAccountsSuggestions, resetPinnedAccountsEditor } from 'flavours/glitch/actions/accounts';
|
||||
import Motion from 'flavours/glitch/features/ui/util/optional_motion';
|
||||
import { fetchPinnedAccounts, clearPinnedAccountsSuggestions, resetPinnedAccountsEditor } from "flavours/glitch/actions/accounts";
|
||||
import Motion from "flavours/glitch/features/ui/util/optional_motion";
|
||||
|
||||
import AccountContainer from './containers/account_container';
|
||||
import SearchContainer from './containers/search_container';
|
||||
import AccountContainer from "./containers/account_container";
|
||||
import SearchContainer from "./containers/search_container";
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
accountIds: state.getIn(['pinnedAccountsEditor', 'accounts', 'items']),
|
||||
searchAccountIds: state.getIn(['pinnedAccountsEditor', 'suggestions', 'items']),
|
||||
accountIds: state.getIn(["pinnedAccountsEditor", "accounts", "items"]),
|
||||
searchAccountIds: state.getIn(["pinnedAccountsEditor", "suggestions", "items"]),
|
||||
});
|
||||
|
||||
const mapDispatchToProps = dispatch => ({
|
||||
@@ -67,7 +67,7 @@ class PinnedAccountsEditor extends ImmutablePureComponent {
|
||||
|
||||
<Motion defaultStyle={{ x: -100 }} style={{ x: spring(showSearch ? 0 : -100, { stiffness: 210, damping: 20 }) }}>
|
||||
{({ x }) =>
|
||||
(<div className='drawer__inner backdrop' style={{ transform: x === 0 ? null : `translateX(${x}%)`, visibility: x === -100 ? 'hidden' : 'visible' }}>
|
||||
(<div className='drawer__inner backdrop' style={{ transform: x === 0 ? null : `translateX(${x}%)`, visibility: x === -100 ? "hidden" : "visible" }}>
|
||||
{searchAccountIds.map(accountId => <AccountContainer key={accountId} accountId={accountId} />)}
|
||||
</div>)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user