Skip to content

Commit

Permalink
Chore: fix lodash imports (#4580)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh authored Nov 29, 2024
1 parent b50340d commit a3cd8e4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/new-safe/create/steps/ReviewStep/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { useMemo, useState } from 'react'
import ChainIndicator from '@/components/common/ChainIndicator'
import NetworkWarning from '../../NetworkWarning'
import useAllSafes from '@/features/myAccounts/hooks/useAllSafes'
import { uniq } from 'lodash'
import uniq from 'lodash/uniq'
import { selectRpc } from '@/store/settingsSlice'
import { AppRoutes } from '@/config/routes'
import { type ReplayedSafeProps } from '@/store/slices'
Expand Down
2 changes: 1 addition & 1 deletion src/components/tx/ApprovalEditor/ApprovalEditorForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { ApprovalInfo } from './hooks/useApprovalInfos'

import { useMemo } from 'react'
import EditableApprovalItem from './EditableApprovalItem'
import { groupBy } from 'lodash'
import groupBy from 'lodash/groupBy'
import { SpenderField } from './SpenderField'

export type ApprovalEditorFormData = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/tx/ApprovalEditor/Approvals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { List, ListItem, Stack } from '@mui/material'
import { type ApprovalInfo } from '@/components/tx/ApprovalEditor/hooks/useApprovalInfos'
import css from './styles.module.css'
import ApprovalItem from '@/components/tx/ApprovalEditor/ApprovalItem'
import { groupBy } from 'lodash'
import groupBy from 'lodash/groupBy'
import { useMemo } from 'react'
import { SpenderField } from './SpenderField'

Expand Down
2 changes: 1 addition & 1 deletion src/components/tx/ApprovalEditor/EditableApprovalItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ApprovalValueField } from './ApprovalValueField'
import Track from '@/components/common/Track'
import { MODALS_EVENTS } from '@/services/analytics'
import { useFormContext } from 'react-hook-form'
import { get } from 'lodash'
import get from 'lodash/get'
import { EditOutlined } from '@mui/icons-material'
import TokenIcon from '@/components/common/TokenIcon'
import { useState } from 'react'
Expand Down
2 changes: 1 addition & 1 deletion src/features/multichain/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Safe_proxy_factory__factory } from '@/types/contracts'
import { keccak256, ethers, solidityPacked, getCreate2Address, type Provider } from 'ethers'
import { extractCounterfactualSafeSetup } from '@/features/counterfactual/utils'
import { encodeSafeSetupCall } from '@/components/new-safe/create/logic'
import { memoize } from 'lodash'
import memoize from 'lodash/memoize'
import { FEATURES, hasFeature } from '@/utils/chains'
import { type SafeItem } from '@/features/myAccounts/hooks/useAllSafes'
import { type MultiChainSafeItem } from '@/features/myAccounts/hooks/useAllSafesGrouped'
Expand Down
2 changes: 1 addition & 1 deletion src/features/myAccounts/hooks/useAllSafesGrouped.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { groupBy } from 'lodash'
import groupBy from 'lodash/groupBy'
import useAllSafes, { type SafeItem, type SafeItems } from './useAllSafes'
import { useMemo } from 'react'
import { sameAddress } from '@/utils/addresses'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect } from 'react'
import type { NextPage } from 'next'
import { useRouter } from 'next/router'
import { AppRoutes } from '@/config/routes'
import { isEmpty } from 'lodash'
import isEmpty from 'lodash/isEmpty'
import local from '@/services/local-storage/local'
import { addedSafesSlice, type AddedSafesState } from '@/store/addedSafesSlice'

Expand Down

0 comments on commit a3cd8e4

Please sign in to comment.