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
3be5e9b5
Unverified
Commit
3be5e9b5
authored
Dec 01, 2022
by
Vignesh Mohankumar
Committed by
GitHub
Dec 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove unused nft variables (#5506)
parent
818e9832
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
83 deletions
+0
-83
ProfileAssetRow.css.ts
src/nft/components/bag/profile/ProfileAssetRow.css.ts
+0
-28
icons.tsx
src/nft/components/icons.tsx
+0
-26
profile.css.ts
src/nft/pages/profile/profile.css.ts
+0
-2
LooksRareRewardsFetcher.ts
src/nft/queries/genie/LooksRareRewardsFetcher.ts
+0
-13
index.ts
src/nft/queries/genie/index.ts
+0
-1
constants.ts
src/nft/queries/openSea/constants.ts
+0
-2
toSignificant.ts
src/nft/utils/toSignificant.ts
+0
-11
No files found.
src/nft/components/bag/profile/ProfileAssetRow.css.ts
View file @
3be5e9b5
import
{
style
}
from
'
@vanilla-extract/css
'
import
{
style
}
from
'
@vanilla-extract/css
'
import
{
buttonTextSmall
}
from
'
nft/css/common.css
'
import
{
sprinkles
}
from
'
nft/css/sprinkles.css
'
import
{
sprinkles
}
from
'
nft/css/sprinkles.css
'
export
const
tagAssetImage
=
style
([
sprinkles
({
borderRadius
:
'
8
'
,
height
:
'
56
'
,
width
:
'
56
'
,
marginX
:
'
12
'
,
}),
])
export
const
removeAsset
=
style
([
export
const
removeAsset
=
style
([
sprinkles
({
sprinkles
({
position
:
'
absolute
'
,
position
:
'
absolute
'
,
...
@@ -21,21 +11,3 @@ export const removeAsset = style([
...
@@ -21,21 +11,3 @@ export const removeAsset = style([
left
:
'
24px
'
,
left
:
'
24px
'
,
},
},
])
])
export
const
removeIcon
=
style
([
sprinkles
({
width
:
'
32
'
,
}),
])
export
const
removeBagRowButton
=
style
([
buttonTextSmall
,
sprinkles
({
background
:
'
backgroundInteractive
'
,
color
:
'
textPrimary
'
,
paddingX
:
'
14
'
,
paddingY
:
'
12
'
,
borderRadius
:
'
12
'
,
cursor
:
'
pointer
'
,
}),
])
src/nft/components/icons.tsx
View file @
3be5e9b5
...
@@ -694,32 +694,6 @@ export const ActivityExternalLinkIcon = (_props: SVGProps) => (
...
@@ -694,32 +694,6 @@ export const ActivityExternalLinkIcon = (_props: SVGProps) => (
</
svg
>
</
svg
>
)
)
export
const
LargeBagIcon
=
(
props
:
SVGProps
)
=>
(
<
svg
width=
"96"
height=
"96"
viewBox=
"0 0 96 96"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
{
...
props
}
>
<
path
d=
"M76 24H20C15.5817 24 12 27.2832 12 31.3333V82.6667C12 86.7168 15.5817 90 20 90H76C80.4183 90 84 86.7168 84 82.6667V31.3333C84 27.2832 80.4183 24 76 24Z"
stroke=
"currentColor"
strokeWidth=
"2.4"
strokeLinecap=
"round"
strokeLinejoin=
"round"
/>
<
path
d=
"M60 40C60 43.1826 58.7357 46.2348 56.4853 48.4853C54.2348 50.7357 51.1826 52 48 52C44.8174 52 41.7652 50.7357 39.5147 48.4853C37.2643 46.2348 36 43.1826 36 40"
stroke=
"currentColor"
strokeWidth=
"2.4"
strokeLinecap=
"round"
strokeLinejoin=
"round"
/>
<
path
d=
"M36 24L36 21C36 17.8174 37.2643 14.7651 39.5147 12.5147C41.7652 10.2643 44.8174 8.99999 48 8.99999C51.1826 8.99999 54.2348 10.2643 56.4853 12.5147C58.7357 14.7651 60 17.8174 60 21L60 24"
stroke=
"currentColor"
strokeWidth=
"2.4"
strokeLinecap=
"round"
strokeLinejoin=
"round"
/>
</
svg
>
)
export
const
LargeTagIcon
=
(
props
:
SVGProps
)
=>
(
export
const
LargeTagIcon
=
(
props
:
SVGProps
)
=>
(
<
svg
width=
"96"
height=
"96"
viewBox=
"0 0 96 96"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
{
...
props
}
>
<
svg
width=
"96"
height=
"96"
viewBox=
"0 0 96 96"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
{
...
props
}
>
<
path
<
path
...
...
src/nft/pages/profile/profile.css.ts
View file @
3be5e9b5
import
{
style
}
from
'
@vanilla-extract/css
'
import
{
style
}
from
'
@vanilla-extract/css
'
import
{
sprinkles
}
from
'
nft/css/sprinkles.css
'
import
{
sprinkles
}
from
'
nft/css/sprinkles.css
'
export
const
NAVBAR_HEIGHT
=
'
72px
'
export
const
section
=
style
([
export
const
section
=
style
([
sprinkles
({
sprinkles
({
paddingLeft
:
{
sm
:
'
16
'
,
lg
:
'
0
'
},
paddingLeft
:
{
sm
:
'
16
'
,
lg
:
'
0
'
},
...
...
src/nft/queries/genie/LooksRareRewardsFetcher.ts
deleted
100644 → 0
View file @
818e9832
import
{
LooksRareRewardsData
}
from
'
../../types
'
const
looksRareApiAddress
=
'
https://api.looksrare.org/api/v1
'
export
const
fetchLooksRareRewards
=
async
(
address
:
string
):
Promise
<
LooksRareRewardsData
>
=>
{
const
res
=
await
fetch
(
`
${
looksRareApiAddress
}
/rewards?address=
${
address
}
`
)
if
(
res
.
status
!==
200
)
throw
new
Error
(
`LooksRare rewards API errored with status
${
res
.
statusText
}
`
)
const
json
=
await
res
.
json
()
return
json
.
data
}
src/nft/queries/genie/index.ts
View file @
3be5e9b5
export
*
from
'
./ActivityFetcher
'
export
*
from
'
./ActivityFetcher
'
export
*
from
'
./CollectionPreviewFetcher
'
export
*
from
'
./CollectionPreviewFetcher
'
export
*
from
'
./logListing
'
export
*
from
'
./logListing
'
export
*
from
'
./LooksRareRewardsFetcher
'
export
*
from
'
./RouteFetcher
'
export
*
from
'
./RouteFetcher
'
export
*
from
'
./SearchCollectionsFetcher
'
export
*
from
'
./SearchCollectionsFetcher
'
export
*
from
'
./TrendingCollectionsFetcher
'
export
*
from
'
./TrendingCollectionsFetcher
'
src/nft/queries/openSea/constants.ts
View file @
3be5e9b5
export
const
OPENSEA_BASE_API_PATH
=
'
https://api.opensea.io
'
export
const
OPENSEA_FEE_ADDRESS
=
'
0x0000a26b00c1F0DF003000390027140000fAa719
'
export
const
OPENSEA_FEE_ADDRESS
=
'
0x0000a26b00c1F0DF003000390027140000fAa719
'
export
const
OPENSEA_DEFAULT_ZONE
=
'
0x004c00500000ad104d7dbd00e3ae0a5c00560c00
'
export
const
OPENSEA_DEFAULT_ZONE
=
'
0x004c00500000ad104d7dbd00e3ae0a5c00560c00
'
export
const
OPENSEA_LISTINGS_API_PATH
=
'
/v2/orders/ethereum/seaport/listings
'
export
const
OPENSEA_DEFAULT_CROSS_CHAIN_CONDUIT_KEY
=
export
const
OPENSEA_DEFAULT_CROSS_CHAIN_CONDUIT_KEY
=
'
0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000
'
'
0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000
'
export
const
OPENSEA_CROSS_CHAIN_CONDUIT
=
'
0x1e0049783f008a0085193e00003d00cd54003c71
'
export
const
OPENSEA_CROSS_CHAIN_CONDUIT
=
'
0x1e0049783f008a0085193e00003d00cd54003c71
'
...
...
src/nft/utils/toSignificant.ts
View file @
3be5e9b5
...
@@ -25,14 +25,3 @@ export function nFormat(num: number, digits = 0): string {
...
@@ -25,14 +25,3 @@ export function nFormat(num: number, digits = 0): string {
.
find
((
item
)
=>
num
>=
item
.
value
)
.
find
((
item
)
=>
num
>=
item
.
value
)
return
item
?
(
num
/
item
.
value
).
toFixed
(
digits
).
replace
(
rx
,
'
$1
'
)
+
item
.
symbol
:
'
0
'
return
item
?
(
num
/
item
.
value
).
toFixed
(
digits
).
replace
(
rx
,
'
$1
'
)
+
item
.
symbol
:
'
0
'
}
}
/**
* Formats percent change values
* @param v number
* @returns formatted number
*/
export
const
formatChange
=
(
v
:
number
)
=>
{
if
(
v
>=
98
)
return
nFormat
(
v
,
2
)
else
if
(
v
<=
0.1
)
return
v
.
toFixed
(
2
)
else
return
v
.
toPrecision
(
2
)
}
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