Skip to content

Commit 2e6326a

Browse files
authored
Merge pull request #249 from fedspendingtransparency/fix/lodash-dtui
lodash to lodash-es
2 parents 84334f3 + 22666c5 commit 2e6326a

File tree

80 files changed

+220
-231
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+220
-231
lines changed

babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const plugins = [
2222
],
2323
"@babel/plugin-transform-runtime",
2424
"@babel/plugin-transform-object-rest-spread",
25-
"@babel/plugin-proposal-class-properties",
26-
"@babel/plugin-proposal-optional-chaining",
25+
"@babel/plugin-transform-class-properties",
26+
"@babel/plugin-transform-optional-chaining",
2727
["@babel/plugin-transform-react-jsx", {
2828
pragmaFrag: "React.Fragment"
2929
}]

components/Carousel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import React, { cloneElement, useEffect, useRef, useState } from 'react';
77
import PropTypes from 'prop-types';
8-
import { uniqueId } from 'lodash';
8+
import { uniqueId } from 'lodash-es';
99

1010
require('../styles/components/_carousel.scss');
1111

components/InPageNav.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import React, {
77
useEffect, useState, useRef, useCallback
88
} from 'react';
99
import PropTypes from 'prop-types';
10-
import { throttle } from "lodash";
10+
import { throttle } from "lodash-es";
1111
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
1212
import { mediumScreen, largeScreen, xLargeScreen } from '../dataMapping/mobileBreakpoints';
1313
import { checkIsOverflow, getElementData, reset } from '../helpers/inPageNavHelper';

components/InformationBoxes.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect, useState } from 'react';
22
import PropTypes from 'prop-types';
3-
import { throttle } from 'lodash';
3+
import { throttle } from 'lodash-es';
44
import { formattedValue, numberToText } from '../helpers/informationBoxesHelper';
55

66
require('../styles/components/_informationBoxes.scss');

components/NewPicker.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import React, { useRef, useState, useEffect } from 'react';
77
import PropTypes from 'prop-types';
88
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
9-
import { uniqueId } from 'lodash';
9+
import { uniqueId } from 'lodash-es';
1010

1111
require('../styles/components/_newPicker.scss');
1212

components/Picker.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import React, { useRef, useState, useEffect } from 'react';
77
import PropTypes from 'prop-types';
88
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
9-
import { uniqueId } from 'lodash';
9+
import { uniqueId } from 'lodash-es';
1010

1111
require('../styles/components/_picker.scss');
1212

components/SearchBar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import React, { useState } from 'react';
7-
import { throttle } from 'lodash';
7+
import { throttle } from 'lodash-es';
88
import PropTypes from 'prop-types';
99
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
1010
import { resetOrSubmitSearch, shouldResetSearchTerm } from '../helpers/searchBarHelper';

components/ShareIcon.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from "react";
22
import PropTypes from "prop-types";
33
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4-
import { debounce } from "lodash";
4+
import { debounce } from "lodash-es";
55
import { faCheckCircle } from "@fortawesome/free-solid-svg-icons";
66
import Picker from "./Picker";
77
import { socialShareOptions } from '../helpers/socialShare';

components/infoTooltip/TooltipWrapper.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import React, { useState, useEffect, useRef } from "react";
77
import PropTypes from "prop-types";
8-
import { throttle, uniqueId } from "lodash";
8+
import { throttle, uniqueId } from "lodash-es";
99
import cx from 'classnames';
1010
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
1111

components/pagination/Pager.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import React from 'react';
77
import PropTypes from 'prop-types';
8-
import { range } from 'lodash';
8+
import { range } from 'lodash-es';
99
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
1010

1111
import { formatNumberWithPrecision } from '../../helpers/moneyFormatter';

0 commit comments

Comments
 (0)