Skip to content

Commit

Permalink
remove hardcoded emotes & replace peer-lb with peer (decentraland#600)
Browse files Browse the repository at this point in the history
* chore: remove hardcoded emotes

* chore: replace peer-lb with peer
  • Loading branch information
cazala authored Mar 29, 2022
1 parent 8299945 commit 164d614
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion webapp/.ci/.env.prd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ REACT_APP_CHAIN_ID=1
# Decentraland APIs
REACT_APP_NFT_SERVER_URL=https://nft-api.decentraland.org/v1
REACT_APP_ATLAS_SERVER_URL=https://api.decentraland.org
REACT_APP_PEER_URL=https://peer-lb.decentraland.org
REACT_APP_PEER_URL=https://peer.decentraland.org
REACT_APP_TRANSACTIONS_API_URL=https://transactions-api.decentraland.org/v1
REACT_APP_BUILDER_URL=https://builder.decentraland.org
REACT_APP_FF_SKINS=1
Expand Down
2 changes: 1 addition & 1 deletion webapp/.ci/.env.stg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ REACT_APP_CHAIN_ID=1
# Decentraland APIs
REACT_APP_NFT_SERVER_URL=https://nft-api.decentraland.net/v1
REACT_APP_ATLAS_SERVER_URL=https://api.decentraland.net
REACT_APP_PEER_URL=https://peer-lb.decentraland.org
REACT_APP_PEER_URL=https://peer.decentraland.org
REACT_APP_TRANSACTIONS_API_URL=https://transactions-api.decentraland.net/v1
REACT_APP_BUILDER_URL=https://builder.decentraland.net
REACT_APP_FF_SKINS=1
Expand Down
14 changes: 0 additions & 14 deletions webapp/src/components/AssetImage/AssetImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,6 @@ const isColor = (maybeColor: Partial<Color>) =>
typeof maybeColor.g === 'number' &&
typeof maybeColor.b === 'number'

function getEmoteFromItemId(itemId?: string) {
switch (itemId) {
case '0':
return AvatarEmote.FASHION_2
case '1':
return AvatarEmote.FASHION_3
case '2':
return 'fashion-4' as AvatarEmote
default:
return AvatarEmote.FASHION_2
}
}

const AssetImage = (props: Props) => {
const {
asset,
Expand Down Expand Up @@ -329,7 +316,6 @@ const AssetImage = (props: Props) => {
itemId={itemId}
tokenId={tokenId}
profile={avatar ? avatar.ethAddress : 'default'}
emote={getEmoteFromItemId(itemId)}
onLoad={handleLoad}
onError={handleError}
dev={isDev}
Expand Down

0 comments on commit 164d614

Please sign in to comment.