Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 2 additions & 23 deletions packages/shared/src/UI/components/AccountIcons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const useStyles = makeStyles()((theme) => {
enum AddressPlatform {
Facebook = 'facebook',
Twitter = 'twitter',
NextId = 'next_id',
}

interface AccountTooltipsProps extends Omit<TooltipProps, 'title'> {
Expand All @@ -72,13 +71,7 @@ function AccountTooltips({ platform, type, children }: AccountTooltipsProps) {
{SocialAddressType.Address === type ?
<Trans>
Data source is retrieved from{' '}
<Select
_twitter="Twitter profile"
_facebook="Facebook profile"
_next_id="NEXT.ID"
value={platform}
/>
.
<Select _twitter="Twitter profile" _facebook="Facebook profile" value={platform} />.
</Trans>
: <Trans>Data source is retrieved from {type?.replace('_', ' ') ?? ''}.</Trans>}
</Typography>
Expand Down Expand Up @@ -117,18 +110,10 @@ export function AccountIcons({ socialAccount, classes: externalClasses }: Accoun
SocialAddressType.Address,
SocialAddressType.SOL,
].find((x) => supportedAddressTypes.includes(x))
const fromNextId = supportedAddressTypes.includes(SocialAddressType.NEXT_ID)

const normalClasses = cx(classes.actionIcon, classes.icon)
const roundedClasses = cx(classes.actionIcon, classes.icon, classes.roundedIcon)
const configs = compact([
fromNextId ?
{
link: resolveSocialAddressLink(SocialAddressType.NEXT_ID),
platform: AddressPlatform.NextId,
icon: <Icons.NextIDMini className={normalClasses} style={{ ...iconStyle, width: 32, height: 18 }} />,
}
: null,
fromTwitter ?
{
platform: AddressPlatform.Twitter,
Expand Down Expand Up @@ -243,13 +228,7 @@ export function AccountIcons({ socialAccount, classes: externalClasses }: Accoun
<Select
other=""
_twitter="Twitter profile and "
_next_id="NEXT.ID and "
value={
fromTwitter ? AddressPlatform.Twitter
: fromNextId ?
AddressPlatform.NextId
: 'normal'
}
value={fromTwitter ? AddressPlatform.Twitter : 'normal'}
/>
{sources}.
</Trans>
Expand Down
11 changes: 11 additions & 0 deletions packages/shared/src/locale/en-US.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions packages/shared/src/locale/en-US.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions packages/shared/src/locale/ja-JP.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions packages/shared/src/locale/ja-JP.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions packages/shared/src/locale/ko-KR.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions packages/shared/src/locale/ko-KR.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions packages/shared/src/locale/zh-CN.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions packages/shared/src/locale/zh-CN.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions packages/shared/src/locale/zh-TW.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions packages/shared/src/locale/zh-TW.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions packages/web3-providers/src/ENS/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ class ENS_API implements NameServiceAPI.Provider {

async lookup(name: string) {
return attemptUntil(
[ChainbaseDomain, Unstoppable, R2D2Domain, TheGraphDomain].map(
(x) => () => x.lookup(ChainId.Mainnet, name),
),
[ChainbaseDomain, Unstoppable, TheGraphDomain].map((x) => () => x.lookup(ChainId.Mainnet, name)),
undefined,
)
}
Expand Down