From 49cc5efc5996bc999c61932b159b4da5a53c2b66 Mon Sep 17 00:00:00 2001 From: abtestingalpha Date: Fri, 6 Dec 2024 13:44:57 -0500 Subject: [PATCH 1/5] Adds link to docs --- .../components/layouts/LandingPageWrapper/index.tsx | 6 +++--- packages/synapse-interface/constants/routes.ts | 8 ++++---- packages/synapse-interface/constants/urls/index.tsx | 1 + packages/synapse-interface/messages/ar.json | 1 + packages/synapse-interface/messages/en-US.json | 1 + packages/synapse-interface/messages/es.json | 1 + packages/synapse-interface/messages/fr.json | 1 + packages/synapse-interface/messages/jp.json | 1 + packages/synapse-interface/messages/tr.json | 1 + packages/synapse-interface/messages/zh-CN.json | 1 + 10 files changed, 15 insertions(+), 7 deletions(-) diff --git a/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx b/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx index b8b2ec294c..aef82543a5 100644 --- a/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx +++ b/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx @@ -211,9 +211,9 @@ function MoreInfoButtons() { description="See preliminary analytics of the bridge" /> ) diff --git a/packages/synapse-interface/constants/routes.ts b/packages/synapse-interface/constants/routes.ts index b33db9f19e..1381e2a87c 100644 --- a/packages/synapse-interface/constants/routes.ts +++ b/packages/synapse-interface/constants/routes.ts @@ -6,8 +6,8 @@ import { POOL_PATH, LANDING_PATH, BRIDGE_PATH, - INTERCHAIN_LINK, SOLANA_BRIDGE_LINK, + SYN_TOKEN_LINK, } from './urls' export interface RouteObject { @@ -53,9 +53,9 @@ export const NAVIGATION: RouteObject = { text: 'Explorer', match: null, }, - Contracts: { - path: INTERCHAIN_LINK, - text: 'Interchain Network', + SYN: { + path: SYN_TOKEN_LINK, + text: '$SYN', match: null, }, Solana: { diff --git a/packages/synapse-interface/constants/urls/index.tsx b/packages/synapse-interface/constants/urls/index.tsx index a3cac309ad..5c1c5df241 100644 --- a/packages/synapse-interface/constants/urls/index.tsx +++ b/packages/synapse-interface/constants/urls/index.tsx @@ -25,6 +25,7 @@ export const LANDING_PATH = '/landing' export const EXPLORER_KAPPA = 'https://explorer.synapseprotocol.com/tx/' export const EXPLORER_PATH = 'https://explorer.synapseprotocol.com/' export const INTERCHAIN_LINK = 'https://interchain.synapseprotocol.com/' +export const SYN_TOKEN_LINK = 'https://docs.synapseprotocol.com/docs/About/SYN' export const SOLANA_BRIDGE_LINK = 'https://solana.synapseprotocol.com/' export const TERMS_OF_SERVICE_PATH = 'https://explorer.synapseprotocol.com/terms' diff --git a/packages/synapse-interface/messages/ar.json b/packages/synapse-interface/messages/ar.json index 33849d6878..09f07631d4 100644 --- a/packages/synapse-interface/messages/ar.json +++ b/packages/synapse-interface/messages/ar.json @@ -344,6 +344,7 @@ "Telegram": "تليجرام", "Functions": "الوظائف", "Developers": "المطورون", + "$SYN": "$SYN", "Support": "الدعم" }, "ReturnToMonke": { diff --git a/packages/synapse-interface/messages/en-US.json b/packages/synapse-interface/messages/en-US.json index ce150f5e79..8452406b49 100644 --- a/packages/synapse-interface/messages/en-US.json +++ b/packages/synapse-interface/messages/en-US.json @@ -344,6 +344,7 @@ "Telegram": "Telegram", "Functions": "Functions", "Developers": "Developers", + "$SYN": "$SYN", "Support": "Support" }, "ReturnToMonke": { diff --git a/packages/synapse-interface/messages/es.json b/packages/synapse-interface/messages/es.json index d35b19a8e8..5c121dfbe6 100644 --- a/packages/synapse-interface/messages/es.json +++ b/packages/synapse-interface/messages/es.json @@ -344,6 +344,7 @@ "Telegram": "Telegram", "Functions": "Funciones", "Developers": "Desarrolladores", + "$SYN": "$SYN", "Support": "Soporte" }, "ReturnToMonke": { diff --git a/packages/synapse-interface/messages/fr.json b/packages/synapse-interface/messages/fr.json index 3298973c04..5f4608d38e 100644 --- a/packages/synapse-interface/messages/fr.json +++ b/packages/synapse-interface/messages/fr.json @@ -344,6 +344,7 @@ "Telegram": "Telegram", "Functions": "Fonctions", "Developers": "Développeurs", + "$SYN": "$SYN", "Support": "Support" }, "ReturnToMonke": { diff --git a/packages/synapse-interface/messages/jp.json b/packages/synapse-interface/messages/jp.json index 8dff093e1d..ee05d2a385 100644 --- a/packages/synapse-interface/messages/jp.json +++ b/packages/synapse-interface/messages/jp.json @@ -344,6 +344,7 @@ "Telegram": "Telegram", "Functions": "機能", "Developers": "開発者", + "$SYN": "$SYN", "Support": "サポート" }, "ReturnToMonke": { diff --git a/packages/synapse-interface/messages/tr.json b/packages/synapse-interface/messages/tr.json index a6ac858168..d51a91667a 100644 --- a/packages/synapse-interface/messages/tr.json +++ b/packages/synapse-interface/messages/tr.json @@ -344,6 +344,7 @@ "Telegram": "Telegram", "Functions": "Fonksiyonlar", "Developers": "Geliştiriciler", + "$SYN": "$SYN", "Support": "Destek" }, "ReturnToMonke": { diff --git a/packages/synapse-interface/messages/zh-CN.json b/packages/synapse-interface/messages/zh-CN.json index fc4d1e5d93..d6a864354b 100644 --- a/packages/synapse-interface/messages/zh-CN.json +++ b/packages/synapse-interface/messages/zh-CN.json @@ -344,6 +344,7 @@ "Telegram": "Telegram", "Functions": "功能", "Developers": "开发者", + "$SYN": "$SYN", "Support": "支持" }, "ReturnToMonke": { From 4d14f543cecb73e97bce53134df190201173d0b3 Mon Sep 17 00:00:00 2001 From: abtestingalpha Date: Fri, 6 Dec 2024 14:02:47 -0500 Subject: [PATCH 2/5] React imports --- packages/synapse-interface/components/toast/ToastContent.tsx | 1 + packages/synapse-interface/components/toast/index.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/synapse-interface/components/toast/ToastContent.tsx b/packages/synapse-interface/components/toast/ToastContent.tsx index 361cfee462..3d138fddd1 100644 --- a/packages/synapse-interface/components/toast/ToastContent.tsx +++ b/packages/synapse-interface/components/toast/ToastContent.tsx @@ -1,3 +1,4 @@ +import React from 'react' import toast from 'react-hot-toast' import { XIcon, diff --git a/packages/synapse-interface/components/toast/index.tsx b/packages/synapse-interface/components/toast/index.tsx index 0ef7675d2c..1b6112ad9b 100644 --- a/packages/synapse-interface/components/toast/index.tsx +++ b/packages/synapse-interface/components/toast/index.tsx @@ -1,3 +1,4 @@ +import React from 'react' import toast, { Toaster, ToastBar } from 'react-hot-toast' import ToastContent from './ToastContent' From fab9226bc7eeb71948b82f590d8bb349f6fb7996 Mon Sep 17 00:00:00 2001 From: abtestingalpha Date: Fri, 6 Dec 2024 14:12:59 -0500 Subject: [PATCH 3/5] Type custom toaster --- packages/synapse-interface/components/toast/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/synapse-interface/components/toast/index.tsx b/packages/synapse-interface/components/toast/index.tsx index 1b6112ad9b..4659dc802b 100644 --- a/packages/synapse-interface/components/toast/index.tsx +++ b/packages/synapse-interface/components/toast/index.tsx @@ -2,7 +2,7 @@ import React from 'react' import toast, { Toaster, ToastBar } from 'react-hot-toast' import ToastContent from './ToastContent' -export default function CustomToaster() { +const CustomToaster: React.FC = () => { return ( ) } + +export default CustomToaster From 2067b1d1e60d30967faa7128156b221998e016ed Mon Sep 17 00:00:00 2001 From: abtestingalpha Date: Fri, 6 Dec 2024 14:30:59 -0500 Subject: [PATCH 4/5] Nocheck --- packages/synapse-interface/components/toast/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/synapse-interface/components/toast/index.tsx b/packages/synapse-interface/components/toast/index.tsx index 4659dc802b..83d4bde824 100644 --- a/packages/synapse-interface/components/toast/index.tsx +++ b/packages/synapse-interface/components/toast/index.tsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React from 'react' import toast, { Toaster, ToastBar } from 'react-hot-toast' import ToastContent from './ToastContent' From 9a375d065ff1eab4aa396911ec988e7cf2c6c756 Mon Sep 17 00:00:00 2001 From: abtestingalpha Date: Fri, 6 Dec 2024 14:38:50 -0500 Subject: [PATCH 5/5] ignore --- packages/synapse-interface/pages/_app.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/synapse-interface/pages/_app.tsx b/packages/synapse-interface/pages/_app.tsx index 74e50e8d27..83acb1d8e5 100644 --- a/packages/synapse-interface/pages/_app.tsx +++ b/packages/synapse-interface/pages/_app.tsx @@ -52,6 +52,7 @@ function App({ Component, pageProps }: AppProps) { timeZone="UTC" messages={pageProps.messages} > + {/* @ts-ignore */}