fix: use lodash-es in the client (#41931)
This commit is contained in:
committed by
GitHub
parent
db369fbed1
commit
9be2fb9a10
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { kebabCase } from 'lodash';
|
||||
import { kebabCase } from 'lodash-es';
|
||||
import normalizeUrl from 'normalize-url';
|
||||
import PropTypes from 'prop-types';
|
||||
import {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import React, { Fragment } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { curry } from 'lodash';
|
||||
import { curry } from 'lodash-es';
|
||||
import { createSelector } from 'reselect';
|
||||
import { connect } from 'react-redux';
|
||||
import { Row, Col } from '@freecodecamp/react-bootstrap';
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import React, { Component, useMemo } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { reverse, sortBy } from 'lodash';
|
||||
import { reverse, sortBy } from 'lodash-es';
|
||||
import {
|
||||
Button,
|
||||
Modal,
|
||||
|
@@ -5,7 +5,7 @@ import { bindActionCreators } from 'redux';
|
||||
import { createSelector } from 'reselect';
|
||||
import { SearchBox } from 'react-instantsearch-dom';
|
||||
import { HotKeys, ObserveKeys } from 'react-hotkeys';
|
||||
import { isEqual } from 'lodash';
|
||||
import { isEqual } from 'lodash-es';
|
||||
import { withTranslation } from 'react-i18next';
|
||||
import { searchPageUrl } from '../../../utils/algolia-locale-setup';
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { connectStateResults, connectHits } from 'react-instantsearch-dom';
|
||||
import isEmpty from 'lodash/isEmpty';
|
||||
import { isEmpty } from 'lodash-es';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { searchPageUrl } from '../../../utils/algolia-locale-setup';
|
||||
|
||||
|
@@ -5,7 +5,7 @@ import {
|
||||
connectStateResults,
|
||||
connectAutoComplete
|
||||
} from 'react-instantsearch-dom';
|
||||
import { isEmpty } from 'lodash';
|
||||
import { isEmpty } from 'lodash-es';
|
||||
|
||||
import EmptySearch from './EmptySearch';
|
||||
import NoResults from './NoResults';
|
||||
|
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { find, first, values, isString } from 'lodash';
|
||||
import { find, first, values, isString } from 'lodash-es';
|
||||
import {
|
||||
Table,
|
||||
Button,
|
||||
|
@@ -8,7 +8,7 @@ import {
|
||||
FormControl,
|
||||
HelpBlock
|
||||
} from '@freecodecamp/react-bootstrap';
|
||||
import { findIndex, find, isEqual } from 'lodash';
|
||||
import { findIndex, find, isEqual } from 'lodash-es';
|
||||
import isURL from 'validator/lib/isURL';
|
||||
import { withTranslation } from 'react-i18next';
|
||||
|
||||
|
Reference in New Issue
Block a user