Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
8c3ba8ba
Unverified
Commit
8c3ba8ba
authored
Nov 14, 2022
by
aballerr
Committed by
GitHub
Nov 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Simplifying opacity hover and fixing a link (#5200)
* Simplifying Opacity hover state and fixing a link styling
parent
c563dd5a
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
49 additions
and
153 deletions
+49
-153
index.tsx
src/components/Common/index.tsx
+16
-0
BagHeader.tsx
src/nft/components/bag/BagHeader.tsx
+2
-12
Card.tsx
src/nft/components/collection/Card.tsx
+2
-6
CollectionNfts.tsx
src/nft/components/collection/CollectionNfts.tsx
+2
-13
AssetActivity.tsx
src/nft/components/details/AssetActivity.tsx
+2
-14
AssetDetails.tsx
src/nft/components/details/AssetDetails.tsx
+6
-22
AssetPriceDetails.tsx
src/nft/components/details/AssetPriceDetails.tsx
+10
-28
DetailsContainer.tsx
src/nft/components/details/DetailsContainer.tsx
+3
-26
TraitsContainer.tsx
src/nft/components/details/TraitsContainer.tsx
+2
-13
TrendingCollections.tsx
src/nft/components/explore/TrendingCollections.tsx
+2
-7
index.tsx
src/nft/pages/collection/index.tsx
+2
-12
No files found.
src/components/Common/index.tsx
View file @
8c3ba8ba
...
@@ -29,3 +29,19 @@ export const ScrollBarStyles = css<{ $isHorizontalScroll?: boolean }>`
...
@@ -29,3 +29,19 @@ export const ScrollBarStyles = css<{ $isHorizontalScroll?: boolean }>`
border-radius: 8px;
border-radius: 8px;
}
}
`
`
export
const
OpacityHoverState
=
css
`
&:hover {
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
&:active {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
transition:
${({
theme
:
{
transition
:
{
duration
,
timing
},
},
})
=>
`opacity
${
duration
.
medium
}
${
timing
.
ease
}
`
}
;
`
src/nft/components/bag/BagHeader.tsx
View file @
8c3ba8ba
import
{
OpacityHoverState
}
from
'
components/Common
'
import
{
Column
,
Row
}
from
'
nft/components/Flex
'
import
{
Column
,
Row
}
from
'
nft/components/Flex
'
import
{
BagCloseIcon
}
from
'
nft/components/icons
'
import
{
BagCloseIcon
}
from
'
nft/components/icons
'
import
{
roundAndPluralize
}
from
'
nft/utils/roundAndPluralize
'
import
{
roundAndPluralize
}
from
'
nft/utils/roundAndPluralize
'
...
@@ -33,19 +34,8 @@ const IconWrapper = styled.button`
...
@@ -33,19 +34,8 @@ const IconWrapper = styled.button`
display: flex;
display: flex;
padding: 2px;
padding: 2px;
opacity: 1;
opacity: 1;
&:hover {
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
&:active {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
transition:
${({
${
OpacityHoverState
}
theme
:
{
transition
:
{
duration
,
timing
},
},
})
=>
`opacity
${
duration
.
medium
}
${
timing
.
ease
}
`
}
;
`
`
interface
BagHeaderProps
{
interface
BagHeaderProps
{
numberOfAssets
:
number
numberOfAssets
:
number
...
...
src/nft/components/collection/Card.tsx
View file @
8c3ba8ba
import
{
BigNumber
}
from
'
@ethersproject/bignumber
'
import
{
BigNumber
}
from
'
@ethersproject/bignumber
'
import
clsx
from
'
clsx
'
import
clsx
from
'
clsx
'
import
{
OpacityHoverState
}
from
'
components/Common
'
import
{
MouseoverTooltip
}
from
'
components/Tooltip
'
import
{
MouseoverTooltip
}
from
'
components/Tooltip
'
import
{
Box
}
from
'
nft/components/Box
'
import
{
Box
}
from
'
nft/components/Box
'
import
{
Row
}
from
'
nft/components/Flex
'
import
{
Row
}
from
'
nft/components/Flex
'
...
@@ -93,12 +94,7 @@ const DetailsLinkContainer = styled.a`
...
@@ -93,12 +94,7 @@ const DetailsLinkContainer = styled.a`
text-decoration: none;
text-decoration: none;
color:
${({
theme
})
=>
theme
.
textSecondary
}
;
color:
${({
theme
})
=>
theme
.
textSecondary
}
;
:hover {
${
OpacityHoverState
}
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
:focus {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
`
`
const
SuspiciousIcon
=
styled
(
AlertTriangle
)
`
const
SuspiciousIcon
=
styled
(
AlertTriangle
)
`
...
...
src/nft/components/collection/CollectionNfts.tsx
View file @
8c3ba8ba
...
@@ -2,6 +2,7 @@ import { TraceEvent } from '@uniswap/analytics'
...
@@ -2,6 +2,7 @@ import { TraceEvent } from '@uniswap/analytics'
import
{
BrowserEvent
,
ElementName
,
EventName
}
from
'
@uniswap/analytics-events
'
import
{
BrowserEvent
,
ElementName
,
EventName
}
from
'
@uniswap/analytics-events
'
import
{
useWeb3React
}
from
'
@web3-react/core
'
import
{
useWeb3React
}
from
'
@web3-react/core
'
import
clsx
from
'
clsx
'
import
clsx
from
'
clsx
'
import
{
OpacityHoverState
}
from
'
components/Common
'
import
{
loadingAnimation
}
from
'
components/Loader/styled
'
import
{
loadingAnimation
}
from
'
components/Loader/styled
'
import
{
parseEther
}
from
'
ethers/lib/utils
'
import
{
parseEther
}
from
'
ethers/lib/utils
'
import
{
NftAssetTraitInput
,
NftMarketplace
}
from
'
graphql/data/nft/__generated__/AssetQuery.graphql
'
import
{
NftAssetTraitInput
,
NftMarketplace
}
from
'
graphql/data/nft/__generated__/AssetQuery.graphql
'
...
@@ -90,19 +91,7 @@ const EmptyCollectionWrapper = styled.div`
...
@@ -90,19 +91,7 @@ const EmptyCollectionWrapper = styled.div`
`
`
const
ViewFullCollection
=
styled
.
span
`
const
ViewFullCollection
=
styled
.
span
`
&:hover {
${
OpacityHoverState
}
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
&:active {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
transition:
${({
theme
:
{
transition
:
{
duration
,
timing
},
},
})
=>
`opacity
${
duration
.
medium
}
${
timing
.
ease
}
`
}
;
`
`
const
ClearAllButton
=
styled
.
button
`
const
ClearAllButton
=
styled
.
button
`
...
...
src/nft/components/details/AssetActivity.tsx
View file @
8c3ba8ba
import
{
ScrollBarStyles
}
from
'
components/Common
'
import
{
OpacityHoverState
,
ScrollBarStyles
}
from
'
components/Common
'
import
{
ActivityEventResponse
}
from
'
nft/types
'
import
{
ActivityEventResponse
}
from
'
nft/types
'
import
{
shortenAddress
}
from
'
nft/utils/address
'
import
{
shortenAddress
}
from
'
nft/utils/address
'
import
{
formatEthPrice
}
from
'
nft/utils/currency
'
import
{
formatEthPrice
}
from
'
nft/utils/currency
'
...
@@ -74,19 +74,7 @@ const Link = styled.a`
...
@@ -74,19 +74,7 @@ const Link = styled.a`
color:
${({
theme
})
=>
theme
.
textPrimary
}
;
color:
${({
theme
})
=>
theme
.
textPrimary
}
;
text-decoration: none;
text-decoration: none;
&:hover {
${
OpacityHoverState
}
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
&:active {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
transition:
${({
theme
:
{
transition
:
{
duration
,
timing
},
},
})
=>
`opacity
${
duration
.
medium
}
${
timing
.
ease
}
`
}
;
`
`
const
ActivityContainer
=
styled
.
div
`
const
ActivityContainer
=
styled
.
div
`
...
...
src/nft/components/details/AssetDetails.tsx
View file @
8c3ba8ba
import
{
ScrollBarStyles
}
from
'
components/Common
'
import
{
OpacityHoverState
,
ScrollBarStyles
}
from
'
components/Common
'
import
Resource
from
'
components/Tokens/TokenDetails/Resource
'
import
Resource
from
'
components/Tokens/TokenDetails/Resource
'
import
{
MouseoverTooltip
}
from
'
components/Tooltip/index
'
import
{
MouseoverTooltip
}
from
'
components/Tooltip/index
'
import
{
Box
}
from
'
nft/components/Box
'
import
{
Box
}
from
'
nft/components/Box
'
...
@@ -19,7 +19,7 @@ import { useCallback, useMemo, useReducer, useState } from 'react'
...
@@ -19,7 +19,7 @@ import { useCallback, useMemo, useReducer, useState } from 'react'
import
InfiniteScroll
from
'
react-infinite-scroll-component
'
import
InfiniteScroll
from
'
react-infinite-scroll-component
'
import
{
useInfiniteQuery
,
useQuery
}
from
'
react-query
'
import
{
useInfiniteQuery
,
useQuery
}
from
'
react-query
'
import
{
Link
as
RouterLink
}
from
'
react-router-dom
'
import
{
Link
as
RouterLink
}
from
'
react-router-dom
'
import
styled
,
{
css
}
from
'
styled-components/macro
'
import
styled
from
'
styled-components/macro
'
import
AssetActivity
from
'
./AssetActivity
'
import
AssetActivity
from
'
./AssetActivity
'
import
*
as
styles
from
'
./AssetDetails.css
'
import
*
as
styles
from
'
./AssetDetails.css
'
...
@@ -27,22 +27,6 @@ import DetailsContainer from './DetailsContainer'
...
@@ -27,22 +27,6 @@ import DetailsContainer from './DetailsContainer'
import
InfoContainer
from
'
./InfoContainer
'
import
InfoContainer
from
'
./InfoContainer
'
import
TraitsContainer
from
'
./TraitsContainer
'
import
TraitsContainer
from
'
./TraitsContainer
'
const
OpacityTransition
=
css
`
&:hover {
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
&:active {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
transition:
${({
theme
:
{
transition
:
{
duration
,
timing
},
},
})
=>
`opacity
${
duration
.
medium
}
${
timing
.
ease
}
`
}
;
`
const
CollectionHeader
=
styled
.
span
`
const
CollectionHeader
=
styled
.
span
`
display: flex;
display: flex;
align-items: center;
align-items: center;
...
@@ -51,7 +35,7 @@ const CollectionHeader = styled.span`
...
@@ -51,7 +35,7 @@ const CollectionHeader = styled.span`
color:
${({
theme
})
=>
theme
.
textPrimary
}
;
color:
${({
theme
})
=>
theme
.
textPrimary
}
;
margin-top: 28px;
margin-top: 28px;
text-decoration: none;
text-decoration: none;
${
Opacity
Transition
}
;
${
Opacity
HoverState
}
;
`
`
const
AssetPriceDetailsContainer
=
styled
.
div
`
const
AssetPriceDetailsContainer
=
styled
.
div
`
...
@@ -89,7 +73,7 @@ const AddressTextLink = styled.a`
...
@@ -89,7 +73,7 @@ const AddressTextLink = styled.a`
text-decoration: none;
text-decoration: none;
max-width: 100%;
max-width: 100%;
word-wrap: break-word;
word-wrap: break-word;
${
Opacity
Transition
}
;
${
Opacity
HoverState
}
;
`
`
const
SocialsContainer
=
styled
.
div
`
const
SocialsContainer
=
styled
.
div
`
...
@@ -131,7 +115,7 @@ const Link = styled(RouterLink)`
...
@@ -131,7 +115,7 @@ const Link = styled(RouterLink)`
line-height: 16px;
line-height: 16px;
margin-top: 12px;
margin-top: 12px;
cursor: pointer;
cursor: pointer;
${
Opacity
Transition
}
;
${
Opacity
HoverState
}
;
`
`
const
DefaultLink
=
styled
(
RouterLink
)
`
const
DefaultLink
=
styled
(
RouterLink
)
`
...
@@ -172,7 +156,7 @@ const FilterBox = styled.div<{ isActive?: boolean }>`
...
@@ -172,7 +156,7 @@ const FilterBox = styled.div<{ isActive?: boolean }>`
cursor: pointer;
cursor: pointer;
box-sizing: border-box;
box-sizing: border-box;
border:
${({
isActive
,
theme
})
=>
(
isActive
?
`1px solid
${
theme
.
accentActive
}
`
:
undefined
)}
;
border:
${({
isActive
,
theme
})
=>
(
isActive
?
`1px solid
${
theme
.
accentActive
}
`
:
undefined
)}
;
${
Opacity
Transition
}
;
${
Opacity
HoverState
}
;
`
`
const
ByText
=
styled
.
span
`
const
ByText
=
styled
.
span
`
...
...
src/nft/components/details/AssetPriceDetails.tsx
View file @
8c3ba8ba
import
{
useWeb3React
}
from
'
@web3-react/core
'
import
{
useWeb3React
}
from
'
@web3-react/core
'
import
{
OpacityHoverState
}
from
'
components/Common
'
import
useCopyClipboard
from
'
hooks/useCopyClipboard
'
import
useCopyClipboard
from
'
hooks/useCopyClipboard
'
import
{
CancelListingIcon
,
MinusIcon
,
PlusIcon
}
from
'
nft/components/icons
'
import
{
CancelListingIcon
,
MinusIcon
,
PlusIcon
}
from
'
nft/components/icons
'
import
{
useBag
}
from
'
nft/hooks
'
import
{
useBag
}
from
'
nft/hooks
'
...
@@ -139,19 +140,7 @@ const UploadLink = styled.a`
...
@@ -139,19 +140,7 @@ const UploadLink = styled.a`
color:
${({
theme
})
=>
theme
.
textSecondary
}
;
color:
${({
theme
})
=>
theme
.
textSecondary
}
;
cursor: pointer;
cursor: pointer;
&:hover {
${
OpacityHoverState
}
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
&:active {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
transition:
${({
theme
:
{
transition
:
{
duration
,
timing
},
},
})
=>
`opacity
${
duration
.
medium
}
${
timing
.
ease
}
`
}
;
`
`
const
NotForSaleContainer
=
styled
.
div
`
const
NotForSaleContainer
=
styled
.
div
`
...
@@ -177,19 +166,7 @@ const OwnerText = styled.a`
...
@@ -177,19 +166,7 @@ const OwnerText = styled.a`
color:
${({
theme
})
=>
theme
.
textSecondary
}
;
color:
${({
theme
})
=>
theme
.
textSecondary
}
;
text-decoration: none;
text-decoration: none;
&:hover {
${
OpacityHoverState
}
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
&:active {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
transition:
${({
theme
:
{
transition
:
{
duration
,
timing
},
},
})
=>
`opacity
${
duration
.
medium
}
${
timing
.
ease
}
`
}
;
`
`
const
OwnerInformationContainer
=
styled
.
div
`
const
OwnerInformationContainer
=
styled
.
div
`
...
@@ -257,6 +234,11 @@ export const OwnerContainer = ({ asset }: { asset: GenieAsset }) => {
...
@@ -257,6 +234,11 @@ export const OwnerContainer = ({ asset }: { asset: GenieAsset }) => {
)
)
}
}
const
StyledLink
=
styled
(
Link
)
`
text-decoration: none;
${
OpacityHoverState
}
`
export
const
NotForSale
=
({
collectionName
,
collectionUrl
}:
{
collectionName
:
string
;
collectionUrl
:
string
})
=>
{
export
const
NotForSale
=
({
collectionName
,
collectionUrl
}:
{
collectionName
:
string
;
collectionUrl
:
string
})
=>
{
const
theme
=
useTheme
()
const
theme
=
useTheme
()
...
@@ -271,9 +253,9 @@ export const NotForSale = ({ collectionName, collectionUrl }: { collectionName:
...
@@ -271,9 +253,9 @@ export const NotForSale = ({ collectionName, collectionUrl }: { collectionName:
<
ThemedText
.
BodySecondary
fontSize=
"14px"
lineHeight=
"20px"
>
<
ThemedText
.
BodySecondary
fontSize=
"14px"
lineHeight=
"20px"
>
Discover similar NFTs for sale in
Discover similar NFTs for sale in
</
ThemedText
.
BodySecondary
>
</
ThemedText
.
BodySecondary
>
<
Link
to=
{
`/nfts/collection/${collectionUrl}`
}
>
<
Styled
Link
to=
{
`/nfts/collection/${collectionUrl}`
}
>
<
ThemedText
.
Link
lineHeight=
"20px"
>
{
collectionName
}
</
ThemedText
.
Link
>
<
ThemedText
.
Link
lineHeight=
"20px"
>
{
collectionName
}
</
ThemedText
.
Link
>
</
Link
>
</
Styled
Link
>
</
DiscoveryContainer
>
</
DiscoveryContainer
>
</
NotForSaleContainer
>
</
NotForSaleContainer
>
</
BestPriceContainer
>
</
BestPriceContainer
>
...
...
src/nft/components/details/DetailsContainer.tsx
View file @
8c3ba8ba
import
{
OpacityHoverState
}
from
'
components/Common
'
import
useCopyClipboard
from
'
hooks/useCopyClipboard
'
import
useCopyClipboard
from
'
hooks/useCopyClipboard
'
import
{
CollectionInfoForAsset
,
GenieAsset
}
from
'
nft/types
'
import
{
CollectionInfoForAsset
,
GenieAsset
}
from
'
nft/types
'
import
{
putCommas
}
from
'
nft/utils
'
import
{
putCommas
}
from
'
nft/utils
'
...
@@ -39,38 +40,14 @@ const Center = styled.span`
...
@@ -39,38 +40,14 @@ const Center = styled.span`
display: flex;
display: flex;
gap: 8px;
gap: 8px;
&:hover {
${
OpacityHoverState
}
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
&:active {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
transition:
${({
theme
:
{
transition
:
{
duration
,
timing
},
},
})
=>
`opacity
${
duration
.
medium
}
${
timing
.
ease
}
`
}
;
`
`
const
CreatorLink
=
styled
.
a
`
const
CreatorLink
=
styled
.
a
`
color:
${({
theme
})
=>
theme
.
textPrimary
}
;
color:
${({
theme
})
=>
theme
.
textPrimary
}
;
text-decoration: none;
text-decoration: none;
&:hover {
${
OpacityHoverState
}
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
&:active {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
transition:
${({
theme
:
{
transition
:
{
duration
,
timing
},
},
})
=>
`opacity
${
duration
.
medium
}
${
timing
.
ease
}
`
}
;
`
`
const
CopyIcon
=
styled
(
Copy
)
`
const
CopyIcon
=
styled
(
Copy
)
`
...
...
src/nft/components/details/TraitsContainer.tsx
View file @
8c3ba8ba
import
{
OpacityHoverState
}
from
'
components/Common
'
import
{
GenieAsset
,
Trait
}
from
'
nft/types
'
import
{
GenieAsset
,
Trait
}
from
'
nft/types
'
import
qs
from
'
query-string
'
import
qs
from
'
query-string
'
import
{
useMemo
}
from
'
react
'
import
{
useMemo
}
from
'
react
'
...
@@ -26,19 +27,7 @@ const GridItemContainer = styled(Link)`
...
@@ -26,19 +27,7 @@ const GridItemContainer = styled(Link)`
padding: 12px;
padding: 12px;
text-decoration: none;
text-decoration: none;
&:hover {
${
OpacityHoverState
}
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
&:active {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
transition:
${({
theme
:
{
transition
:
{
duration
,
timing
},
},
})
=>
`opacity
${
duration
.
medium
}
${
timing
.
ease
}
`
}
;
min-width: 0;
min-width: 0;
`
`
...
...
src/nft/components/explore/TrendingCollections.tsx
View file @
8c3ba8ba
import
{
OpacityHoverState
}
from
'
components/Common
'
import
ms
from
'
ms.macro
'
import
ms
from
'
ms.macro
'
import
{
CollectionTableColumn
,
Denomination
,
TimePeriod
,
VolumeType
}
from
'
nft/types
'
import
{
CollectionTableColumn
,
Denomination
,
TimePeriod
,
VolumeType
}
from
'
nft/types
'
import
{
fetchPrice
}
from
'
nft/utils
'
import
{
fetchPrice
}
from
'
nft/utils
'
...
@@ -60,13 +61,7 @@ const Selector = styled.div<{ active: boolean }>`
...
@@ -60,13 +61,7 @@ const Selector = styled.div<{ active: boolean }>`
background:
${({
active
,
theme
})
=>
(
active
?
theme
.
backgroundInteractive
:
'
none
'
)}
;
background:
${({
active
,
theme
})
=>
(
active
?
theme
.
backgroundInteractive
:
'
none
'
)}
;
cursor: pointer;
cursor: pointer;
:hover {
${
OpacityHoverState
}
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
:active {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
`
`
const
StyledSelectorText
=
styled
(
ThemedText
.
SubHeader
)
<
{
active
:
boolean
}
>
`
const
StyledSelectorText
=
styled
(
ThemedText
.
SubHeader
)
<
{
active
:
boolean
}
>
`
...
...
src/nft/pages/collection/index.tsx
View file @
8c3ba8ba
import
{
Trace
}
from
'
@uniswap/analytics
'
import
{
Trace
}
from
'
@uniswap/analytics
'
import
{
PageName
}
from
'
@uniswap/analytics-events
'
import
{
PageName
}
from
'
@uniswap/analytics-events
'
import
{
useWeb3React
}
from
'
@web3-react/core
'
import
{
useWeb3React
}
from
'
@web3-react/core
'
import
{
OpacityHoverState
}
from
'
components/Common
'
import
{
useLoadAssetsQuery
}
from
'
graphql/data/nft/Asset
'
import
{
useLoadAssetsQuery
}
from
'
graphql/data/nft/Asset
'
import
{
useCollectionQuery
,
useLoadCollectionQuery
}
from
'
graphql/data/nft/Collection
'
import
{
useCollectionQuery
,
useLoadCollectionQuery
}
from
'
graphql/data/nft/Collection
'
import
{
MobileHoverBag
}
from
'
nft/components/bag/MobileHoverBag
'
import
{
MobileHoverBag
}
from
'
nft/components/bag/MobileHoverBag
'
...
@@ -49,19 +50,8 @@ const IconWrapper = styled.button`
...
@@ -49,19 +50,8 @@ const IconWrapper = styled.button`
display: flex;
display: flex;
padding: 2px 0px;
padding: 2px 0px;
opacity: 1;
opacity: 1;
&:hover {
opacity:
${({
theme
})
=>
theme
.
opacity
.
hover
}
;
}
&:active {
opacity:
${({
theme
})
=>
theme
.
opacity
.
click
}
;
}
transition:
${({
${
OpacityHoverState
}
theme
:
{
transition
:
{
duration
,
timing
},
},
})
=>
`opacity
${
duration
.
medium
}
${
timing
.
ease
}
`
}
;
`
`
const
Collection
=
()
=>
{
const
Collection
=
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment