Skip to content

Commit

Permalink
fix: Claim ens name option (#2939)
Browse files Browse the repository at this point in the history
  • Loading branch information
fzavalia committed Oct 4, 2023
1 parent 95f389c commit 0acf628
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,15 @@ export default function DeployToWorld({
const names = nameType === NameType.DCL ? ensList : externalNames
const options: DropdownItemProps[] = names.map(ens => ({ text: ens.name, value: ens.subdomain }))

if (nameType === NameType.DCL) {
options.push({
text: (
<span>
<DCLIcon name="add" />
{t('deployment_modal.deploy_world.claim_name')}
</span>
),
value: CLAIM_NAME_OPTION
})
}
options.push({
text: (
<span>
<DCLIcon name="add" />
{nameType === NameType.DCL ? t('deployment_modal.deploy_world.claim_name') : t('deployment_modal.deploy_world.claim_name_ens')}
</span>
),
value: CLAIM_NAME_OPTION
})

return options
}, [nameType, ensList, externalNames])
Expand Down
3 changes: 2 additions & 1 deletion src/modules/translation/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@
"world_placeholder": "Select a NAME",
"back": "Go back to publish scene",
"close": "Close publish modal",
"claim_name": "Claim a new Name",
"claim_name": "Claim a new NAME",
"claim_name_ens": "Claim an ENS name",
"empty_state_title": "You don't have any available World",
"empty_state_description": "<b>Get a free World when you own a NAME</b>.<br></br>Each NAME will give you access to one world. You can have as many as you want.",
"name_type": {
Expand Down
1 change: 1 addition & 0 deletions src/modules/translation/languages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@
"back": "Volver a elegir donde publicar",
"close": "Cerrar modal publicación",
"claim_name": "Obtener un nombre",
"claim_name_ens": "Obtener un nombre ENS",
"empty_state_title": "No tiene ningún mundo disponible",
"empty_state_description": "<b>Obtenga un mundo gratis cuando tenga un nombre</b>.<br></br>Cada nombre le otorga acceso a un mundo. Puedes tener tantos como quieras.",
"name_type": {
Expand Down
1 change: 1 addition & 0 deletions src/modules/translation/languages/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@
"back": "回到发布场景",
"close": "关闭发布模式",
"claim_name": "索赔名称",
"claim_name_ens": "获取 ENS 名称",
"empty_state_title": "您没有任何可用的梦境空间。",
"empty_state_description": "<b>当您拥有一个名字时,获得一个免费的梦境空间</b>.<br></br>每个名称都会让您进入一个世界。您可以拥有想要的数量。",
"name_type": {
Expand Down

1 comment on commit 0acf628

@vercel
Copy link

@vercel vercel bot commented on 0acf628 Oct 4, 2023

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:

builder – ./

builder-decentraland1.vercel.app
builder-git-master-decentraland1.vercel.app

Please sign in to comment.