From cc11795d7f0ad535421b1c2f30eb91dc8880f774 Mon Sep 17 00:00:00 2001 From: Juanma Hidalgo Date: Fri, 5 Jan 2024 13:30:13 +0100 Subject: [PATCH] feat: add names link to the navbar (#485) * feat: add names link to the navbar * feat: update names link in navbar2 --- src/components/Navbar/Navbar.tsx | 12 +++++++++++- src/config/env/dev.json | 2 +- src/config/env/prod.json | 2 +- src/config/env/stg.json | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/components/Navbar/Navbar.tsx b/src/components/Navbar/Navbar.tsx index e857673d..7b37a52d 100644 --- a/src/components/Navbar/Navbar.tsx +++ b/src/components/Navbar/Navbar.tsx @@ -17,6 +17,7 @@ export type NavbarI18N = { collectibles: React.ReactNode land: React.ReactNode myAssets: React.ReactNode + names: React.ReactNode } docs: { main: React.ReactNode @@ -111,7 +112,8 @@ export class Navbar extends React.PureComponent { overview: 'Overview', collectibles: 'Collectibles', land: 'LAND', - myAssets: 'My Assets' + myAssets: 'My Assets', + names: 'NAMEs' }, docs: { main: 'Docs', @@ -248,6 +250,14 @@ export class Navbar extends React.PureComponent { > {i18n.menu.marketplace.land} + + this.handleClickMenuOption(e, `${NavbarPages.MARKETPLACE}_names`) + } + > + {i18n.menu.marketplace.names} + diff --git a/src/config/env/dev.json b/src/config/env/dev.json index 5183ecae..abd09ac9 100644 --- a/src/config/env/dev.json +++ b/src/config/env/dev.json @@ -3,7 +3,7 @@ "ACCOUNT_URL": "https://decentraland.zone/account", "PROFILE_URL": "https://decentraland.zone/profile", "MARKETPLACE_URL": "https://decentraland.zone/marketplace", - "MARKETPLACE_NAMES_URL": "https://decentraland.zone/marketplace/browse?assetType=nft§ion=ens&vendor=decentraland&page=1&sortBy=newest&onlyOnSale=true", + "MARKETPLACE_NAMES_URL": "https://decentraland.zone/marketplace/names/claim", "MARKETPLACE_WEARABLES_URL": "https://decentraland.zone/marketplace/browse?section=wearables&vendor=decentraland&page=1&sortBy=newest&status=on_sale", "MARKETPLACE_LANDS_URL": "https://decentraland.zone/marketplace/lands", "MARKETPLACE_EMOTES_URL": "https://decentraland.zone/marketplace/browse?assetType=item§ion=emotes&vendor=decentraland&page=1&sortBy=newest&status=on_sale", diff --git a/src/config/env/prod.json b/src/config/env/prod.json index f65a8073..77c1c9fb 100644 --- a/src/config/env/prod.json +++ b/src/config/env/prod.json @@ -3,7 +3,7 @@ "ACCOUNT_URL": "https://decentraland.org/account", "PROFILE_URL": "https://decentraland.org/profile", "MARKETPLACE_URL": "https://decentraland.org/marketplace", - "MARKETPLACE_NAMES_URL": "https://decentraland.org/marketplace/browse?assetType=nft§ion=ens&vendor=decentraland&page=1&sortBy=newest&onlyOnSale=true", + "MARKETPLACE_NAMES_URL": "https://decentraland.org/names/claim", "MARKETPLACE_WEARABLES_URL": "https://decentraland.org/marketplace/browse?section=wearables&vendor=decentraland&page=1&sortBy=newest&status=on_sale", "MARKETPLACE_LANDS_URL": "https://decentraland.org/marketplace/lands", "MARKETPLACE_EMOTES_URL": "https://decentraland.org/marketplace/browse?assetType=item§ion=emotes&vendor=decentraland&page=1&sortBy=newest&status=on_sale", diff --git a/src/config/env/stg.json b/src/config/env/stg.json index 82f778be..e8dea789 100644 --- a/src/config/env/stg.json +++ b/src/config/env/stg.json @@ -3,7 +3,7 @@ "ACCOUNT_URL": "https://decentraland.today/account", "PROFILE_URL": "https://decentraland.today/profile", "MARKETPLACE_URL": "https://decentraland.today/marketplace", - "MARKETPLACE_NAMES_URL": "https://decentraland.today/marketplace/browse?assetType=nft§ion=ens&vendor=decentraland&page=1&sortBy=newest&onlyOnSale=true", + "MARKETPLACE_NAMES_URL": "https://decentraland.today/names/claim", "MARKETPLACE_WEARABLES_URL": "https://decentraland.today/marketplace/browse?section=wearables&vendor=decentraland&page=1&sortBy=newest&status=on_sale", "MARKETPLACE_LANDS_URL": "https://decentraland.today/marketplace/lands", "MARKETPLACE_EMOTES_URL": "https://decentraland.today/marketplace/browse?assetType=item§ion=emotes&vendor=decentraland&page=1&sortBy=newest&status=on_sale",