Commit a9e7c6f5 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

chore: remove deprecated zustand import (#6129)

parent 333c3a28
...@@ -4,7 +4,7 @@ import { BagIcon, HundredsOverflowIcon, TagIcon } from 'nft/components/icons' ...@@ -4,7 +4,7 @@ import { BagIcon, HundredsOverflowIcon, TagIcon } from 'nft/components/icons'
import { useBag, useSellAsset } from 'nft/hooks' import { useBag, useSellAsset } from 'nft/hooks'
import { useCallback } from 'react' import { useCallback } from 'react'
import styled from 'styled-components/macro' import styled from 'styled-components/macro'
import shallow from 'zustand/shallow' import { shallow } from 'zustand/shallow'
const CounterDot = styled.div` const CounterDot = styled.div`
background-color: ${({ theme }) => theme.accentAction}; background-color: ${({ theme }) => theme.accentAction};
......
...@@ -35,7 +35,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react' ...@@ -35,7 +35,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { useQueryClient } from 'react-query' import { useQueryClient } from 'react-query'
import styled from 'styled-components/macro' import styled from 'styled-components/macro'
import { Z_INDEX } from 'theme/zIndex' import { Z_INDEX } from 'theme/zIndex'
import shallow from 'zustand/shallow' import { shallow } from 'zustand/shallow'
import * as styles from './Bag.css' import * as styles from './Bag.css'
import { BagContent } from './BagContent' import { BagContent } from './BagContent'
......
...@@ -36,7 +36,7 @@ import { InterfaceTrade, TradeState } from 'state/routing/types' ...@@ -36,7 +36,7 @@ import { InterfaceTrade, TradeState } from 'state/routing/types'
import styled, { useTheme } from 'styled-components/macro' import styled, { useTheme } from 'styled-components/macro'
import { ThemedText } from 'theme' import { ThemedText } from 'theme'
import { switchChain } from 'utils/switchChain' import { switchChain } from 'utils/switchChain'
import shallow from 'zustand/shallow' import { shallow } from 'zustand/shallow'
const FooterContainer = styled.div` const FooterContainer = styled.div`
padding: 0px 12px; padding: 0px 12px;
......
...@@ -26,7 +26,7 @@ import { ArrowLeft } from 'react-feather' ...@@ -26,7 +26,7 @@ import { ArrowLeft } from 'react-feather'
import styled from 'styled-components/macro' import styled from 'styled-components/macro'
import { BREAKPOINTS, ThemedText } from 'theme' import { BREAKPOINTS, ThemedText } from 'theme'
import { Z_INDEX } from 'theme/zIndex' import { Z_INDEX } from 'theme/zIndex'
import shallow from 'zustand/shallow' import { shallow } from 'zustand/shallow'
import { ListModal } from './Modal/ListModal' import { ListModal } from './Modal/ListModal'
import { NFTListingsGrid } from './NFTListingsGrid' import { NFTListingsGrid } from './NFTListingsGrid'
......
...@@ -7,7 +7,7 @@ import { Listing, WalletAsset } from 'nft/types' ...@@ -7,7 +7,7 @@ import { Listing, WalletAsset } from 'nft/types'
import { useMemo, useState } from 'react' import { useMemo, useState } from 'react'
import styled from 'styled-components/macro' import styled from 'styled-components/macro'
import { BREAKPOINTS } from 'theme' import { BREAKPOINTS } from 'theme'
import shallow from 'zustand/shallow' import { shallow } from 'zustand/shallow'
const BELOW_FLOOR_PRICE_THRESHOLD = 0.8 const BELOW_FLOOR_PRICE_THRESHOLD = 0.8
......
...@@ -16,7 +16,7 @@ import { X } from 'react-feather' ...@@ -16,7 +16,7 @@ import { X } from 'react-feather'
import styled from 'styled-components/macro' import styled from 'styled-components/macro'
import { BREAKPOINTS, ThemedText } from 'theme' import { BREAKPOINTS, ThemedText } from 'theme'
import { Z_INDEX } from 'theme/zIndex' import { Z_INDEX } from 'theme/zIndex'
import shallow from 'zustand/shallow' import { shallow } from 'zustand/shallow'
import { TitleRow } from '../shared' import { TitleRow } from '../shared'
import { ListModalSection, Section } from './ListModalSection' import { ListModalSection, Section } from './ListModalSection'
......
...@@ -7,7 +7,7 @@ import { OPENSEA_CROSS_CHAIN_CONDUIT } from 'nft/queries/openSea' ...@@ -7,7 +7,7 @@ import { OPENSEA_CROSS_CHAIN_CONDUIT } from 'nft/queries/openSea'
import { CollectionRow, ListingMarket, ListingRow, ListingStatus, WalletAsset } from 'nft/types' import { CollectionRow, ListingMarket, ListingRow, ListingStatus, WalletAsset } from 'nft/types'
import { approveCollection, LOOKS_RARE_CREATOR_BASIS_POINTS, signListing } from 'nft/utils/listNfts' import { approveCollection, LOOKS_RARE_CREATOR_BASIS_POINTS, signListing } from 'nft/utils/listNfts'
import { Dispatch, useEffect } from 'react' import { Dispatch, useEffect } from 'react'
import shallow from 'zustand/shallow' import { shallow } from 'zustand/shallow'
export async function approveCollectionRow( export async function approveCollectionRow(
collectionRow: CollectionRow, collectionRow: CollectionRow,
......
...@@ -24,7 +24,7 @@ import InfiniteScroll from 'react-infinite-scroll-component' ...@@ -24,7 +24,7 @@ import InfiniteScroll from 'react-infinite-scroll-component'
import { useInfiniteQuery } from 'react-query' import { useInfiniteQuery } from 'react-query'
import { easings, useSpring } from 'react-spring' import { easings, useSpring } from 'react-spring'
import styled from 'styled-components/macro' import styled from 'styled-components/macro'
import shallow from 'zustand/shallow' import { shallow } from 'zustand/shallow'
import { EmptyWalletContent } from './EmptyWalletContent' import { EmptyWalletContent } from './EmptyWalletContent'
import * as styles from './ProfilePage.css' import * as styles from './ProfilePage.css'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment