Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(synapse-interface): Link to docs #3442

Merged
merged 5 commits into from
Dec 6, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ function MoreInfoButtons() {
description="See preliminary analytics of the bridge"
/>
<MoreInfoItem
to={NAVIGATION.Contracts.path}
labelText={NAVIGATION.Contracts.text}
description="View contract related information such as contract addresses"
to={NAVIGATION.SYN.path}
labelText={NAVIGATION.SYN.text}
description="View $SYN related information such as contract addresses"
/>
</>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import toast from 'react-hot-toast'
import {
XIcon,
Expand Down
6 changes: 5 additions & 1 deletion packages/synapse-interface/components/toast/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// @ts-nocheck
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 (
<Toaster
position="bottom-right" // top-right
Expand All @@ -28,3 +30,5 @@ export default function CustomToaster() {
</Toaster>
)
}

export default CustomToaster
8 changes: 4 additions & 4 deletions packages/synapse-interface/constants/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
POOL_PATH,
LANDING_PATH,
BRIDGE_PATH,
INTERCHAIN_LINK,
SOLANA_BRIDGE_LINK,
SYN_TOKEN_LINK,
} from './urls'

export interface RouteObject {
Expand Down Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/constants/urls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/messages/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
"Telegram": "تليجرام",
"Functions": "الوظائف",
"Developers": "المطورون",
"$SYN": "$SYN",
"Support": "الدعم"
},
"ReturnToMonke": {
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/messages/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
"Telegram": "Telegram",
"Functions": "Functions",
"Developers": "Developers",
"$SYN": "$SYN",
"Support": "Support"
},
"ReturnToMonke": {
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
"Telegram": "Telegram",
"Functions": "Funciones",
"Developers": "Desarrolladores",
"$SYN": "$SYN",
"Support": "Soporte"
},
"ReturnToMonke": {
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
"Telegram": "Telegram",
"Functions": "Fonctions",
"Developers": "Développeurs",
"$SYN": "$SYN",
"Support": "Support"
},
"ReturnToMonke": {
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/messages/jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
"Telegram": "Telegram",
"Functions": "機能",
"Developers": "開発者",
"$SYN": "$SYN",
"Support": "サポート"
},
"ReturnToMonke": {
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/messages/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
"Telegram": "Telegram",
"Functions": "Fonksiyonlar",
"Developers": "Geliştiriciler",
"$SYN": "$SYN",
"Support": "Destek"
},
"ReturnToMonke": {
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/messages/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
"Telegram": "Telegram",
"Functions": "功能",
"Developers": "开发者",
"$SYN": "$SYN",
"Support": "支持"
},
"ReturnToMonke": {
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function App({ Component, pageProps }: AppProps) {
timeZone="UTC"
messages={pageProps.messages}
>
{/* @ts-ignore */}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

⚠️ Potential issue

Remove @ts-ignore and fix WagmiProvider type issues

The @ts-ignore comment is being used to suppress type checking for the WagmiProvider component. This is a common issue when using the latest version of wagmi, which can be resolved by:

  • Ensuring wagmiConfig is properly typed using Config from wagmi
  • Updating wagmi dependencies if using an older version
  • Using proper type imports from '@wagmi/core'
🔗 Analysis chain

Avoid using @ts-ignore

The TypeScript ignore comment suppresses type checking which could mask potential issues. Consider fixing the underlying type incompatibility with WagmiProvider instead.

Let's check if there are similar patterns in the codebase:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for ts-ignore comments to identify potential type issues
rg "@ts-ignore" --type tsx --type ts

Length of output: 64


Script:

#!/bin/bash
# Search for ts-ignore comments using ripgrep without file type filters
rg "@ts-ignore"

Length of output: 1389


Script:

#!/bin/bash
# Let's check the context around the ts-ignore in _app.tsx to understand what's being ignored
rg -B 2 -A 2 "@ts-ignore" packages/synapse-interface/pages/_app.tsx

Length of output: 238

<WagmiProvider config={wagmiConfig}>
<QueryClientProvider client={queryClient}>
<RainbowKitProvider
Expand Down
Loading