Commit b48af759 authored by Jack Short's avatar Jack Short Committed by GitHub

style: moving mobile sell bag above tab bar (#5292)

* style: moving mobile sell bag above tab bar

* changing color

* changing to toggleBag

* cleanup imports
Co-authored-by: default avatarCharles Bachmeier <charlie@genie.xyz>
parent 3969f041
...@@ -8,16 +8,16 @@ import { CrossIcon } from 'nft/components/icons' ...@@ -8,16 +8,16 @@ import { CrossIcon } from 'nft/components/icons'
import { FilterSidebar } from 'nft/components/profile/view/FilterSidebar' import { FilterSidebar } from 'nft/components/profile/view/FilterSidebar'
import { subhead } from 'nft/css/common.css' import { subhead } from 'nft/css/common.css'
import { import {
useBag,
useFiltersExpanded, useFiltersExpanded,
useIsMobile, useIsMobile,
useProfilePageState,
useSellAsset, useSellAsset,
useWalletBalance, useWalletBalance,
useWalletCollections, useWalletCollections,
} from 'nft/hooks' } from 'nft/hooks'
import { ScreenBreakpointsPaddings } from 'nft/pages/collection/index.css' import { ScreenBreakpointsPaddings } from 'nft/pages/collection/index.css'
import { OSCollectionsFetcher } from 'nft/queries' import { OSCollectionsFetcher } from 'nft/queries'
import { ProfilePageStateType, WalletCollection } from 'nft/types' import { WalletCollection } from 'nft/types'
import { Dispatch, SetStateAction, useEffect, useState } from 'react' import { Dispatch, SetStateAction, useEffect, useState } from 'react'
import InfiniteScroll from 'react-infinite-scroll-component' import InfiniteScroll from 'react-infinite-scroll-component'
import { useQuery } from 'react-query' import { useQuery } from 'react-query'
...@@ -51,7 +51,7 @@ export const ProfilePage = () => { ...@@ -51,7 +51,7 @@ export const ProfilePage = () => {
shallow shallow
) )
const sellAssets = useSellAsset((state) => state.sellAssets) const sellAssets = useSellAsset((state) => state.sellAssets)
const setSellPageState = useProfilePageState((state) => state.setProfilePageState) const toggleBag = useBag((state) => state.toggleBag)
const [isFiltersExpanded, setFiltersExpanded] = useFiltersExpanded() const [isFiltersExpanded, setFiltersExpanded] = useFiltersExpanded()
const isMobile = useIsMobile() const isMobile = useIsMobile()
const [currentTokenPlayingMedia, setCurrentTokenPlayingMedia] = useState<string | undefined>() const [currentTokenPlayingMedia, setCurrentTokenPlayingMedia] = useState<string | undefined>()
...@@ -148,21 +148,23 @@ export const ProfilePage = () => { ...@@ -148,21 +148,23 @@ export const ProfilePage = () => {
<Row <Row
display={{ sm: 'flex', md: 'none' }} display={{ sm: 'flex', md: 'none' }}
position="fixed" position="fixed"
bottom="24"
left="16" left="16"
height="56" height="56"
borderRadius="12" borderRadius="12"
paddingX="16" paddingX="16"
paddingY="12" paddingY="12"
style={{ background: '#0d0e0ef2', width: 'calc(100% - 32px)', lineHeight: '24px' }} borderStyle="solid"
borderColor="backgroundOutline"
borderWidth="1px"
style={{ background: '#0d0e0ef2', bottom: '68px', width: 'calc(100% - 32px)', lineHeight: '24px' }}
className={subhead} className={subhead}
> >
{sellAssets.length}&nbsp; selected item{sellAssets.length === 1 ? '' : 's'} {sellAssets.length} NFT{sellAssets.length === 1 ? '' : 's'}
<Box <Box
fontWeight="semibold" fontWeight="semibold"
fontSize="14" fontSize="14"
cursor="pointer" cursor="pointer"
color="genieBlue" color="textSecondary"
marginRight="20" marginRight="20"
marginLeft="auto" marginLeft="auto"
onClick={resetSellAssets} onClick={resetSellAssets}
...@@ -176,12 +178,13 @@ export const ProfilePage = () => { ...@@ -176,12 +178,13 @@ export const ProfilePage = () => {
fontSize="14" fontSize="14"
cursor="pointer" cursor="pointer"
backgroundColor="genieBlue" backgroundColor="genieBlue"
onClick={() => setSellPageState(ProfilePageStateType.LISTING)} onClick={toggleBag}
lineHeight="16" lineHeight="16"
borderRadius="12" borderRadius="12"
padding="8" paddingY="8"
paddingX="28"
> >
Continue Sell
</Box> </Box>
</Row> </Row>
)} )}
......
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