Skip to content

Commit 1767b64

Browse files
committed
Remove unsupported network message
1 parent ac7b951 commit 1767b64

11 files changed

Lines changed: 0 additions & 105 deletions

File tree

public/locales/en/common.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"title": "Your web3 username",
33
"description": "Your identity across web3, one name for all your crypto addresses, and your decentralised website.",
44
"loading": "Loading",
5-
"unsupportedNetwork": "Unsupported network",
65
"notFound": "404 Not Found",
76
"etherscan": "Etherscan",
87
"action": {

public/locales/es/common.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"title": "Tu nombre de usuario de Web3",
33
"description": "Tu identidad en todo Web3, un nombre para todas tus direcciones de criptomonedas y tu sitio web descentralizado.",
44
"loading": "Cargando",
5-
"unsupportedNetwork": "Red no compatible",
65
"notFound": "404 No encontrado",
76
"etherscan": "Etherscan",
87
"action": {

public/locales/nl/common.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"title": "Jouw web3 gebruikersnaam",
33
"description": "Jouw web3 identiteit, een naam voor al je crypto Adressen, en je gedecentraliseerde website.",
44
"loading": "Laden",
5-
"unsupportedNetwork": "Netwerk niet ondersteund",
65
"action": {
76
"cancel": "Annuleer",
87
"change": "Verander",

public/locales/pt/common.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"title": "Seu nome de usuário na Web3",
33
"description": "Sua identidade em toda a Web3, um nome para todos os seus endereços de criptomoedas e seu site descentralizado.",
44
"loading": "Carregando",
5-
"unsupportedNetwork": "Rede não suportada",
65
"notFound": "404 Não encontrado",
76
"etherscan": "Etherscan",
87
"action": {

public/locales/ru/common.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"title": "Ваше веб3 имя пользователя",
33
"description": "Ваша идентификация в веб3, одно имя для всех ваших криптоадресов и вашего децентрализованного вебсайта.",
44
"loading": "Загрузка",
5-
"unsupportedNetwork": "Неподдерживаемая сеть",
65
"notFound": "404 Не найдено",
76
"etherscan": "Etherscan",
87
"action": {

public/locales/uk/common.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"title": "Ваш веб3 ім'я користувача",
33
"description": "Ваша ідентичність у веб3, одне ім'я для всіх ваших криптоадрес і ваш децентралізований вебсайт.",
44
"loading": "Завантаження",
5-
"unsupportedNetwork": "Мережева підтримка не підтримується",
65
"notFound": "404 Не знайдено",
76
"etherscan": "Etherscan",
87
"action": {

public/locales/zh/common.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"title": "您的 web3 用户名",
33
"description": "您在 web3 上的身份,一个名称就能解析到您所有的加密地址和您的去中心化网站。",
44
"loading": "加载中",
5-
"unsupportedNetwork": "不支持的网络",
65
"notFound": "404 未找到",
76
"etherscan": "Etherscan",
87
"action": {

src/layouts/Basic.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export const Basic = withErrorBoundary(({ children }: { children: React.ReactNod
8383
const { switchChain, isPending, isError } = useSwitchChain()
8484
useSetupIntercom()
8585

86-
const router = useRouterWithHistory()
8786
const [error] = useErrorBoundary()
8887

8988
useEffect(() => {
@@ -94,10 +93,6 @@ export const Basic = withErrorBoundary(({ children }: { children: React.ReactNod
9493
}
9594
}, [isConnected, hasProgrammaticChainSwitching, isPending, isError, chainId, switchChain])
9695

97-
useEffect(() => {
98-
shouldRedirect(router, 'Basic.tsx', '/unsupportedNetwork', { isConnected, chainId })
99-
}, [isConnected, chainId, router])
100-
10196
return (
10297
<Container className="min-safe">
10398
<Navigation />

src/pages/unsupportedNetwork.tsx

Lines changed: 0 additions & 69 deletions
This file was deleted.

src/utils/shouldRedirect.test.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,6 @@ describe('shouldRedirect', () => {
5151
expect(mockRouter.pathname).toBe(`/`)
5252
})
5353

54-
it('Basic.tsx should return expected path if has valid arguments', () => {
55-
const params = {
56-
isConnected: true,
57-
chainId: 0,
58-
}
59-
shouldRedirect(mockRouter as never, 'Basic.tsx', '/unsupportedNetwork', params)
60-
expect(mockRouter.pathname).toBe(`/unsupportedNetwork`)
61-
})
62-
63-
it('Basic.tsx should not return expected path if has valid arguments', () => {
64-
const params = {
65-
isConnected: false,
66-
chainId: 0,
67-
}
68-
shouldRedirect(mockRouter as never, 'Basic.tsx', '/unsupportedNetwork', params)
69-
expect(mockRouter.pathname).toBe(`/`)
70-
})
71-
7254
it('DnsClaim.tsx should return "/" path if has valid arguments', () => {
7355
const params = {
7456
shouldRun: true,

0 commit comments

Comments
 (0)