diff --git a/src/nft/components/collection/CollectionNfts.tsx b/src/nft/components/collection/CollectionNfts.tsx index d454558285..9d42201d00 100644 --- a/src/nft/components/collection/CollectionNfts.tsx +++ b/src/nft/components/collection/CollectionNfts.tsx @@ -40,8 +40,7 @@ import { useEffect, useMemo, useRef, useState } from 'react' import InfiniteScroll from 'react-infinite-scroll-component' import { useInfiniteQuery } from 'react-query' import { useLocation } from 'react-router-dom' -import styled, { useTheme } from 'styled-components/macro' -import { ThemedText } from 'theme' +import styled from 'styled-components/macro' import { CollectionAssetLoading } from './CollectionAssetLoading' import { MARKETPLACE_ITEMS } from './MarketplaceSelect' @@ -55,6 +54,8 @@ interface CollectionNftsProps { } const rarityStatusCache = new Map() +const nonRarityIcon = +const rarityIcon = const ActionsContainer = styled.div` display: flex; @@ -172,8 +173,6 @@ export const CollectionNfts = ({ contractAddress, collectionStats, rarityVerifie const toggleBag = useBag((state) => state.toggleBag) const bagExpanded = useBag((state) => state.bagExpanded) - const theme = useTheme() - const debouncedMinPrice = useDebounce(minPrice, 500) const debouncedMaxPrice = useDebounce(maxPrice, 500) const debouncedSearchByNameText = useDebounce(searchByNameText, 500) @@ -301,25 +300,25 @@ export const CollectionNfts = ({ contractAddress, collectionStats, rarityVerifie { displayText: 'Low to High', onClick: () => setSortBy(SortBy.LowToHigh), - icon: , + icon: nonRarityIcon, reverseIndex: 2, }, { displayText: 'High to Low', onClick: () => setSortBy(SortBy.HighToLow), - icon: , + icon: nonRarityIcon, reverseIndex: 1, }, { displayText: 'Rare to Common', onClick: () => setSortBy(SortBy.RareToCommon), - icon: , + icon: rarityIcon, reverseIndex: 4, }, { displayText: 'Common to Rare', onClick: () => setSortBy(SortBy.CommonToRare), - icon: , + icon: rarityIcon, reverseIndex: 3, }, ] @@ -327,13 +326,13 @@ export const CollectionNfts = ({ contractAddress, collectionStats, rarityVerifie { displayText: 'Low to High', onClick: () => setSortBy(SortBy.LowToHigh), - icon: , + icon: nonRarityIcon, reverseIndex: 2, }, { displayText: 'High to Low', onClick: () => setSortBy(SortBy.HighToLow), - icon: , + icon: nonRarityIcon, reverseIndex: 1, }, ], @@ -453,6 +452,7 @@ export const CollectionNfts = ({ contractAddress, collectionStats, rarityVerifie { if (!buyNow || hasErc1155s) return if (!sweepIsOpen) { @@ -462,16 +462,8 @@ export const CollectionNfts = ({ contractAddress, collectionStats, rarityVerifie setSweepOpen(!sweepIsOpen) }} > - - - Sweep - + + Sweep ) ) : null} diff --git a/src/nft/components/collection/FilterButton.tsx b/src/nft/components/collection/FilterButton.tsx index 80b934db36..498934700e 100644 --- a/src/nft/components/collection/FilterButton.tsx +++ b/src/nft/components/collection/FilterButton.tsx @@ -3,6 +3,7 @@ import { Box } from 'nft/components/Box' import * as styles from 'nft/components/collection/FilterButton.css' import { Row } from 'nft/components/Flex' import { FilterIcon } from 'nft/components/icons' +import { buttonTextMedium } from 'nft/css/common.css' import { useCollectionFilters, useIsCollectionLoading, useWalletCollections } from 'nft/hooks' import { putCommas } from 'nft/utils/putCommas' import { useLocation } from 'react-router-dom' @@ -66,12 +67,16 @@ export const FilterButton = ({ )} )} - {!isMobile && !isFiltersExpanded && 'Filter'} + {!isMobile && !isFiltersExpanded && 'Filter'} {showFilterBadge && !isMobile ? ( @@ -80,7 +85,7 @@ export const FilterButton = ({ • )} - + {collectionCount > 0 ? putCommas(collectionCount) : 0} results diff --git a/src/nft/components/common/SortDropdown/SortDropdown.tsx b/src/nft/components/common/SortDropdown/SortDropdown.tsx index 02d08e38e4..8f931d96d8 100644 --- a/src/nft/components/common/SortDropdown/SortDropdown.tsx +++ b/src/nft/components/common/SortDropdown/SortDropdown.tsx @@ -66,7 +66,7 @@ export const SortDropdown = ({ fontSize="14" borderRadius="12" borderStyle={isOpen && !mini ? 'solid' : 'none'} - background={mini ? 'none' : 'backgroundModule'} + background={mini ? 'none' : 'backgroundInteractive'} borderColor="backgroundOutline" borderWidth="1px" borderBottomLeftRadius={isOpen ? '0' : undefined} @@ -84,7 +84,7 @@ export const SortDropdown = ({ > {!isCollectionStatsLoading && ( <> - + {!isOpen && reversable && ( { @@ -138,7 +138,7 @@ export const SortDropdown = ({ right={inFilters ? '16' : 'auto'} paddingBottom="8" fontSize="14" - background="backgroundModule" + background="backgroundInteractive" borderStyle="solid" borderColor="backgroundOutline" borderWidth="1px" @@ -218,7 +218,7 @@ const DropDownItem = ({ cursor="pointer" > {option.icon && ( - + {option.icon} )} diff --git a/src/nft/components/icons.tsx b/src/nft/components/icons.tsx index 3ebeadc120..188758eeee 100644 --- a/src/nft/components/icons.tsx +++ b/src/nft/components/icons.tsx @@ -549,10 +549,10 @@ export const ClockIconFilled = (props: SVGProps) => { } export const ArrowsIcon = () => ( - + ) @@ -567,10 +567,10 @@ export const ListingEqualsIcon = (props: SVGProps) => ( ) export const ReversedArrowsIcon = () => ( - + ) @@ -924,10 +924,10 @@ export const CornerDownLeftIcon = (props: SVGProps) => ( ) export const FilterIcon = (props: SVGProps) => ( - + ` gap: 8px; cursor: pointer; background-color: ${({ theme, active }) => (active ? theme.accentAction : theme.backgroundInteractive)}; - color: #fff; + color: ${({ theme }) => theme.textPrimary}; border: none; outline: none; &:hover { @@ -198,7 +198,7 @@ export const ProfilePage = () => { /> {isSellMode && } - + Sell