Skip to content

Commit

Permalink
feat: add names link to the navbar (#485)
Browse files Browse the repository at this point in the history
* feat: add names link to the navbar

* feat: update names link in navbar2
  • Loading branch information
juanmahidalgo authored Jan 5, 2024
1 parent 89687a0 commit cc11795
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion src/components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export type NavbarI18N = {
collectibles: React.ReactNode
land: React.ReactNode
myAssets: React.ReactNode
names: React.ReactNode
}
docs: {
main: React.ReactNode
Expand Down Expand Up @@ -111,7 +112,8 @@ export class Navbar extends React.PureComponent<NavbarProps, NavbarState> {
overview: 'Overview',
collectibles: 'Collectibles',
land: 'LAND',
myAssets: 'My Assets'
myAssets: 'My Assets',
names: 'NAMEs'
},
docs: {
main: 'Docs',
Expand Down Expand Up @@ -248,6 +250,14 @@ export class Navbar extends React.PureComponent<NavbarProps, NavbarState> {
>
{i18n.menu.marketplace.land}
</Menu.Item>
<Menu.Item
href={`${config.get('MARKETPLACE_URL')}/names/claim`}
onMouseDown={(e: React.MouseEvent) =>
this.handleClickMenuOption(e, `${NavbarPages.MARKETPLACE}_names`)
}
>
{i18n.menu.marketplace.names}
</Menu.Item>
<Menu.Item
href={`${config.get('MARKETPLACE_URL')}/account`}
onMouseDown={(e: React.MouseEvent) =>
Expand Down
2 changes: 1 addition & 1 deletion src/config/env/dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -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&section=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&section=emotes&vendor=decentraland&page=1&sortBy=newest&status=on_sale",
Expand Down
2 changes: 1 addition & 1 deletion src/config/env/prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -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&section=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&section=emotes&vendor=decentraland&page=1&sortBy=newest&status=on_sale",
Expand Down
2 changes: 1 addition & 1 deletion src/config/env/stg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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&section=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&section=emotes&vendor=decentraland&page=1&sortBy=newest&status=on_sale",
Expand Down

1 comment on commit cc11795

@vercel
Copy link

@vercel vercel bot commented on cc11795 Jan 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

decentraland-ui – ./

decentraland-ui-decentraland1.vercel.app
decentraland-ui-git-master-decentraland1.vercel.app

Please sign in to comment.