Commit 3be5e9b5 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

chore: remove unused nft variables (#5506)

parent 818e9832
import { style } from '@vanilla-extract/css'
import { buttonTextSmall } from 'nft/css/common.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([
sprinkles({
position: 'absolute',
......@@ -21,21 +11,3 @@ export const removeAsset = style([
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',
}),
])
......@@ -694,32 +694,6 @@ export const ActivityExternalLinkIcon = (_props: SVGProps) => (
</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) => (
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path
......
import { style } from '@vanilla-extract/css'
import { sprinkles } from 'nft/css/sprinkles.css'
export const NAVBAR_HEIGHT = '72px'
export const section = style([
sprinkles({
paddingLeft: { sm: '16', lg: '0' },
......
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
}
export * from './ActivityFetcher'
export * from './CollectionPreviewFetcher'
export * from './logListing'
export * from './LooksRareRewardsFetcher'
export * from './RouteFetcher'
export * from './SearchCollectionsFetcher'
export * from './TrendingCollectionsFetcher'
export const OPENSEA_BASE_API_PATH = 'https://api.opensea.io'
export const OPENSEA_FEE_ADDRESS = '0x0000a26b00c1F0DF003000390027140000fAa719'
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 =
'0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000'
export const OPENSEA_CROSS_CHAIN_CONDUIT = '0x1e0049783f008a0085193e00003d00cd54003c71'
......
......@@ -25,14 +25,3 @@ export function nFormat(num: number, digits = 0): string {
.find((item) => num >= item.value)
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)
}
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