Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Jun 22, 2023
1 parent 919aed9 commit 50b4af4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/balances/AssetsTable/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type ReactElement, Dispatch, SetStateAction, useCallback } from 'react'
import { type ReactElement, type Dispatch, type SetStateAction, useCallback, useMemo } from 'react'
import { Tooltip, Typography, SvgIcon, Box, Skeleton, Checkbox } from '@mui/material'
import type { TokenInfo } from '@safe-global/safe-gateway-typescript-sdk'
import { TokenType } from '@safe-global/safe-gateway-typescript-sdk'
Expand Down Expand Up @@ -59,7 +59,7 @@ type AssetsTableProps = {

const AssetsTable = ({ selectedTokens, setSelectedTokens }: AssetsTableProps): ReactElement => {
const { balances, loading } = useBalances()
const allAssets = balances.items || []
const allAssets = useMemo(() => balances.items || [], [balances.items])

const onCheckboxClick = useCallback(
(e: React.ChangeEvent<HTMLInputElement>, item: string) => {
Expand All @@ -74,7 +74,7 @@ const AssetsTable = ({ selectedTokens, setSelectedTokens }: AssetsTableProps): R
(e: React.ChangeEvent<HTMLInputElement>) => {
setSelectedTokens(e.target.checked ? allAssets.map((item) => item.tokenInfo.address) : [])
},
[allAssets],
[allAssets, setSelectedTokens],
)

const headCells = [
Expand Down
2 changes: 1 addition & 1 deletion src/components/balances/SendButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReactElement, useContext } from 'react'
import { type ReactElement, useContext } from 'react'
import { Button } from '@mui/material'
import CheckWallet from '@/components/common/CheckWallet'
import Track from '@/components/common/Track'
Expand Down

0 comments on commit 50b4af4

Please sign in to comment.