Skip to content

Commit c24eaf0

Browse files
authored
Merge pull request #12465 from ethereum/submodules-import
Performance: import lodash submodules
2 parents 69d9c7d + 8d34350 commit c24eaf0

File tree

15 files changed

+16
-17
lines changed

15 files changed

+16
-17
lines changed

src/@chakra-ui/components/Avatar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { pick } from "lodash"
1+
import pick from "lodash/pick"
22
import { avatarAnatomy } from "@chakra-ui/anatomy"
33
import {
44
createMultiStyleConfigHelpers,

src/@chakra-ui/components/components.utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { merge } from "lodash"
1+
import merge from "lodash/merge"
22
import { cssVar, SystemStyleObject, theme } from "@chakra-ui/react"
33

44
const {

src/components/Contributors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { shuffle } from "lodash"
1+
import shuffle from "lodash/shuffle"
22
import { Box, Flex, Image, LinkBox, LinkOverlay } from "@chakra-ui/react"
33

44
import InlineLink from "@/components/Link"

src/components/FindWallet/WalletFilterSidebar/WalletFilterFeature/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { MutableRefObject } from "react"
2-
import { uniqueId } from "lodash"
2+
import uniqueId from "lodash/uniqueId"
33
import { BsToggleOff, BsToggleOn } from "react-icons/bs"
44
import {
55
Accordion,

src/components/MeetupList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState } from "react"
2-
import { sortBy } from "lodash"
2+
import sortBy from "lodash/sortBy"
33
import {
44
Box,
55
Flex,

src/components/Quiz/QuizWidget/QuizSummary.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { useEffect } from "react"
2-
import { merge } from "lodash"
31
import { useRouter } from "next/router"
42
import { useTranslation } from "next-i18next"
53
import {

src/components/Quiz/QuizWidget/useQuizWidget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffect, useMemo, useState } from "react"
2-
import { shuffle } from "lodash"
2+
import shuffle from "lodash/shuffle"
33
import { useTranslation } from "next-i18next"
44

55
import type {

src/components/RandomAppList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffect, useState } from "react"
2-
import { shuffle } from "lodash"
2+
import shuffle from "lodash/shuffle"
33

44
import type { TranslationKey } from "@/lib/types"
55

src/components/Staking/StakingProductsCardGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ComponentType, SVGProps, useEffect, useState } from "react"
2-
import { shuffle } from "lodash"
2+
import shuffle from "lodash/shuffle"
33
import { useTranslation } from "next-i18next"
44
import {
55
Badge,

src/components/StatsBoxGrid/GridItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { kebabCase } from "lodash"
1+
import kebabCase from "lodash/kebabCase"
22
import { MdInfoOutline } from "react-icons/md"
33
import { Area, AreaChart, ResponsiveContainer, XAxis, YAxis } from "recharts"
4-
import { Box, Flex, HStack, Icon, Text, VStack } from "@chakra-ui/react"
4+
import { Box, Flex, Icon, Text } from "@chakra-ui/react"
55

66
import type { StatsBoxMetric } from "@/lib/types"
77

0 commit comments

Comments
 (0)