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
6aa999f7
Unverified
Commit
6aa999f7
authored
Dec 01, 2022
by
aballerr
Committed by
GitHub
Dec 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Web 2398 (#5488)
* adding highlight when no value for selling has been set
parent
0a3f8636
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
NFTListingsGrid.tsx
src/nft/components/profile/list/NFTListingsGrid.tsx
+1
-14
No files found.
src/nft/components/profile/list/NFTListingsGrid.tsx
View file @
6aa999f7
...
@@ -164,7 +164,7 @@ const PriceTextInput = ({
...
@@ -164,7 +164,7 @@ const PriceTextInput = ({
?
'
genieBlue
'
?
'
genieBlue
'
:
listPrice
!=
null
:
listPrice
!=
null
?
'
textSecondary
'
?
'
textSecondary
'
:
'
gray7
00
'
:
'
blue4
00
'
}
}
>
>
<
NumericInput
<
NumericInput
...
@@ -326,8 +326,6 @@ const MarketplaceRow = ({
...
@@ -326,8 +326,6 @@ const MarketplaceRow = ({
:
asset
.
basisPoints
)
*
0.01
:
asset
.
basisPoints
)
*
0.01
const
feeInEth
=
price
&&
(
price
*
(
royalties
+
marketplaceFee
))
/
100
const
feeInEth
=
price
&&
(
price
*
(
royalties
+
marketplaceFee
))
/
100
const
userReceives
=
price
&&
feeInEth
&&
price
-
feeInEth
const
userReceives
=
price
&&
feeInEth
&&
price
-
feeInEth
const
profit
=
userReceives
&&
asset
.
lastPrice
&&
userReceives
-
asset
.
lastPrice
const
profitPercent
=
profit
&&
asset
.
lastPrice
&&
Math
.
round
(
profit
&&
(
profit
/
asset
.
lastPrice
)
*
100
)
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
globalPriceMethod
===
SetPriceMethod
.
FLOOR_PRICE
)
{
if
(
globalPriceMethod
===
SetPriceMethod
.
FLOOR_PRICE
)
{
...
@@ -449,17 +447,6 @@ const MarketplaceRow = ({
...
@@ -449,17 +447,6 @@ const MarketplaceRow = ({
<
Row
style=
{
{
flex
:
'
1.5
'
}
}
display=
{
{
sm
:
'
none
'
,
md
:
'
flex
'
}
}
>
<
Row
style=
{
{
flex
:
'
1.5
'
}
}
display=
{
{
sm
:
'
none
'
,
md
:
'
flex
'
}
}
>
<
Column
width=
"full"
>
<
Column
width=
"full"
>
<
EthPriceDisplay
ethPrice=
{
userReceives
}
/>
<
EthPriceDisplay
ethPrice=
{
userReceives
}
/>
{
(
showGlobalPrice
?
globalPrice
&&
globalPrice
!==
0
:
listPrice
!==
0
)
&&
(
<
Row
marginTop=
"4"
width=
"full"
fontSize=
"12"
color=
"textSecondary"
>
{
profit
?
<
Box
marginLeft=
"auto"
>
Profit:
{
formatEth
(
profit
)
}
ETH
</
Box
>
:
null
}
{
profitPercent
?
(
<
Box
marginLeft=
"8"
marginRight=
"0"
>
(
{
profitPercent
>
0
&&
'
+
'
}
{
profitPercent
>
1000
?
Math
.
round
(
profitPercent
/
1000
)
+
'
K
'
:
profitPercent
}
%)
</
Box
>
)
:
null
}
</
Row
>
)
}
</
Column
>
</
Column
>
</
Row
>
</
Row
>
</
Row
>
</
Row
>
...
...
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