Skip to content

Commit

Permalink
chore: remove unused nft variables (Uniswap#5506)
Browse files Browse the repository at this point in the history
  • Loading branch information
vm authored Dec 1, 2022
1 parent 818e983 commit 3be5e9b
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 83 deletions.
28 changes: 0 additions & 28 deletions src/nft/components/bag/profile/ProfileAssetRow.css.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
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',
Expand All @@ -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',
}),
])
26 changes: 0 additions & 26 deletions src/nft/components/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/nft/pages/profile/profile.css.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
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' },
Expand Down
13 changes: 0 additions & 13 deletions src/nft/queries/genie/LooksRareRewardsFetcher.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/nft/queries/genie/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export * from './ActivityFetcher'
export * from './CollectionPreviewFetcher'
export * from './logListing'
export * from './LooksRareRewardsFetcher'
export * from './RouteFetcher'
export * from './SearchCollectionsFetcher'
export * from './TrendingCollectionsFetcher'
2 changes: 0 additions & 2 deletions src/nft/queries/openSea/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
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'
Expand Down
11 changes: 0 additions & 11 deletions src/nft/utils/toSignificant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 3be5e9b

Please sign in to comment.