Merge branch 'lodash-imports' into 'develop'

Specifically import the single lodash function

See merge request soapbox-pub/soapbox-fe!1540
This commit is contained in:
Justin 2022-06-17 13:47:23 +00:00
commit 20e0692012
41 changed files with 22 additions and 22 deletions

Binary file not shown.

View file

@ -1,5 +1,5 @@
import { createAsyncThunk } from '@reduxjs/toolkit';
import { get } from 'lodash';
import get from 'lodash/get';
import KVStore from 'soapbox/storage/kv_store';
import { RootState } from 'soapbox/store';

Binary file not shown.

Binary file not shown.

View file

@ -1,5 +1,5 @@
import { OrderedSet as ImmutableOrderedSet } from 'immutable';
import { throttle } from 'lodash';
import throttle from 'lodash/throttle';
import React, { useState, useRef, useCallback, useEffect } from 'react';
import { accountSearch } from 'soapbox/actions/accounts';

Binary file not shown.

View file

@ -1,5 +1,5 @@
import classNames from 'classnames';
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React, { useRef } from 'react';
import { useDispatch } from 'react-redux';

View file

@ -1,5 +1,5 @@
import classNames from 'classnames';
import { throttle } from 'lodash';
import throttle from 'lodash/throttle';
import React, { useState, useEffect, useCallback } from 'react';
import { useIntl, MessageDescriptor } from 'react-intl';

View file

@ -1,4 +1,4 @@
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React, { useEffect, useRef, useMemo, useCallback } from 'react';
import { useHistory } from 'react-router-dom';
import { Virtuoso, Components, VirtuosoProps, VirtuosoHandle, ListRange, IndexLocationWithAlign } from 'react-virtuoso';

View file

@ -1,5 +1,5 @@
import classNames from 'classnames';
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React, { useRef, useCallback } from 'react';
import { FormattedMessage } from 'react-intl';

Binary file not shown.

View file

@ -1,6 +1,6 @@
import axios from 'axios';
import { Map as ImmutableMap } from 'immutable';
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React, { useState, useRef, useCallback } from 'react';
import { useIntl, FormattedMessage, defineMessages } from 'react-intl';
import { Link, useHistory } from 'react-router-dom';

View file

@ -1,4 +1,4 @@
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React from 'react';
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
import { useDispatch } from 'react-redux';

View file

@ -1,4 +1,4 @@
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React from 'react';
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';

View file

@ -1,4 +1,4 @@
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React, { useRef } from 'react';
import { FormattedMessage } from 'react-intl';

View file

@ -1,4 +1,4 @@
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React from 'react';
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
import { useDispatch } from 'react-redux';

View file

@ -1,5 +1,5 @@
import { emojiIndex } from 'emoji-mart';
import { pick } from 'lodash';
import pick from 'lodash/pick';
import { search } from '../emoji_mart_search_light';

View file

@ -1,4 +1,4 @@
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React from 'react';
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
import { useDispatch } from 'react-redux';

View file

@ -1,4 +1,4 @@
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React from 'react';
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
import { useDispatch } from 'react-redux';

View file

@ -1,4 +1,4 @@
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React, { useEffect } from 'react';
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';

View file

@ -1,5 +1,5 @@
import { OrderedSet as ImmutableOrderedSet } from 'immutable';
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React, { useCallback } from 'react';
import { defineMessages } from 'react-intl';

View file

@ -1,6 +1,6 @@
'use strict';
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import React, { useState, useEffect, useRef, useCallback } from 'react';
import { HotKeys } from 'react-hotkeys';
import { defineMessages, useIntl } from 'react-intl';

Binary file not shown.

View file

@ -4,7 +4,7 @@ import {
Record as ImmutableRecord,
fromJS,
} from 'immutable';
import { trimStart } from 'lodash';
import trimStart from 'lodash/trimStart';
import { toTailwind } from 'soapbox/utils/tailwind';
import { generateAccent } from 'soapbox/utils/theme';

Binary file not shown.

View file

@ -1,5 +1,5 @@
import { List as ImmutableList, Map as ImmutableMap } from 'immutable';
import { get } from 'lodash';
import get from 'lodash/get';
import { STREAMING_FOLLOW_RELATIONSHIPS_UPDATE } from 'soapbox/actions/streaming';
import { normalizeRelationship } from 'soapbox/normalizers/relationship';

View file

@ -1,6 +1,6 @@
import IntlMessageFormat from 'intl-messageformat';
import 'intl-pluralrules';
import { unescape } from 'lodash';
import unescape from 'lodash/unescape';
import locales from './web_push_locales';

View file

@ -4,7 +4,7 @@ import {
Set as ImmutableSet,
fromJS,
} from 'immutable';
import { trimStart } from 'lodash';
import trimStart from 'lodash/trimStart';
export type Config = ImmutableMap<string, any>;
export type Policy = ImmutableMap<string, any>;