Skip to content

Commit 7a8d634

Browse files
committed
Clarify primary name normalization messaging
1 parent 0f3e4f3 commit 7a8d634

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

public/locales/en/address.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"view": "View",
1010
"noProfile": {
1111
"title": "No primary name set",
12-
"message": "This wallet needs to set a primary name to create a profile"
12+
"message": "This wallet needs to set a primary name to create a profile. Only normalized names will be shown."
1313
},
1414
"noResults": "No names found",
1515
"errors": {

public/locales/en/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"primary": {
2323
"title": "Primary Name",
24-
"noNameDescription": "A primary name links your address to a name, allowing dApps to display a name as your profile when connected to them. Learn about primary names",
24+
"noNameDescription": "A primary name links your address to a name, allowing dApps to display a name as your profile when connected to them. Only normalized names will be shown. <link>Learn about primary names</link>",
2525
"choosePrimaryName": "Choose primary name",
2626
"inheritedFromDefault": "Inherited from default",
2727
"networkSpecificPrimaryNames": {

src/components/pages/profile/settings/PrimarySection/PrimarySection.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { useTranslation } from 'react-i18next'
1+
import { Trans, useTranslation } from 'react-i18next'
22
import styled, { css } from 'styled-components'
33

44
import { Button, Card, CrossSVG, PersonPlusSVG, Skeleton, Typography } from '@ensdomains/thorin'
55

6+
import { Outlink } from '@app/components/Outlink'
67
import { AvatarWithLink } from '@app/components/@molecules/AvatarWithLink/AvatarWithLink'
78
import { DisabledButtonWithTooltip } from '@app/components/@molecules/DisabledButtonWithTooltip'
89
import { getNetworkFromUrl } from '@app/constants/chains'
@@ -271,7 +272,17 @@ export const PrimarySection = () => {
271272
</NoNameButton>
272273
</>
273274
)}
274-
<NoNameDescription>{t('section.primary.noNameDescription')}</NoNameDescription>
275+
<NoNameDescription>
276+
<Trans
277+
ns="settings"
278+
i18nKey="section.primary.noNameDescription"
279+
components={{
280+
link: (
281+
<Outlink href="https://support.ens.domains/en/articles/7890756-what-is-a-primary-name" />
282+
),
283+
}}
284+
/>
285+
</NoNameDescription>
275286
</NoNameContainer>
276287
)}
277288

0 commit comments

Comments
 (0)