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

Adding new venues to docs #3443

Closed
wants to merge 9 commits into from
Closed
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
4 changes: 4 additions & 0 deletions docs/bridge/docs/01-About/04-SYN.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Liquidity for the [$SYN](https://coinmarketcap.com/currencies/synapse-2/) token
| Binance (Spot) | `https://www.binance.com/en/trade/SYN_USDT?type=spot` [](https://www.binance.com/en/trade/SYN_USDT?type=spot) |
| Binance (Perpetuals) | `https://www.binance.com/en/futures/SYNUSDT` [](https://www.binance.com/en/futures/SYNUSDT) |
| Bybit (SYN/USDT) | `https://www.bybit.com/trade/usdt/SYNUSDT` [](https://www.bybit.com/trade/usdt/SYNUSDT) |
| HTX | `https://www.htx.com/price/syn/` [](https://www.htx.com/price/syn/) |
| Kraken | `https://www.kraken.com/prices/synapse` [](https://www.kraken.com/prices/synapse) |
| KuCoin | `https://www.kucoin.com/price/SYN` [](https://www.kucoin.com/price/SYN) |


<br />

Expand Down
11 changes: 6 additions & 5 deletions packages/synapse-interface/components/toast/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
// @ts-nocheck
import React from 'react'
import toast, { Toaster, ToastBar } from 'react-hot-toast'
import { Toaster as HotToaster, ToastBar as HotToastBar } from 'react-hot-toast'
import ToastContent from './ToastContent'
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Replace any type assertions with proper types.

Using any type assertions reduces type safety. Consider using the proper types from the react-hot-toast library.

-const Toaster = HotToaster as React.FC<any>
-const ToastBar = HotToastBar as React.FC<any>
+import type { ToasterProps, ToastBarProps } from 'react-hot-toast'
+const Toaster = HotToaster as React.FC<ToasterProps>
+const ToastBar = HotToastBar as React.FC<ToastBarProps>

Also applies to: 5-6


const CustomToaster: React.FC = () => {
const Toaster = HotToaster as React.FC<any>
const ToastBar = HotToastBar as React.FC<any>

export default function CustomToaster(): React.ReactElement {
return (
<Toaster
position="bottom-right" // top-right
position="bottom-right"
containerClassName="pt-8"
toastOptions={{
// Define default options
style: {
background: 'transparent',
padding: '0px',
Expand Down
4 changes: 2 additions & 2 deletions packages/synapse-interface/messages/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@
"Telegram": "Telegram",
"Functions": "Functions",
"Developers": "Developers",
"$SYN": "$SYN",
"Support": "Support"
"Support": "Support",
"$SYN": "$SYN"
},
"ReturnToMonke": {
"Choose Synapse": "Choose Synapse",
Expand Down
4 changes: 2 additions & 2 deletions packages/synapse-interface/messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@
"Telegram": "Telegram",
"Functions": "Funciones",
"Developers": "Desarrolladores",
"$SYN": "$SYN",
"Support": "Soporte"
"Support": "Soporte",
"$SYN": "$SYN"
},
"ReturnToMonke": {
"Choose Synapse": "Elige Synapse",
Expand Down
4 changes: 2 additions & 2 deletions packages/synapse-interface/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@
"Telegram": "Telegram",
"Functions": "Fonctions",
"Developers": "Développeurs",
"$SYN": "$SYN",
"Support": "Support"
"Support": "Support",
"$SYN": "$SYN"
},
"ReturnToMonke": {
"Choose Synapse": "Choisir Synapse",
Expand Down
4 changes: 2 additions & 2 deletions packages/synapse-interface/messages/jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@
"Telegram": "Telegram",
"Functions": "機能",
"Developers": "開発者",
"$SYN": "$SYN",
"Support": "サポート"
"Support": "サポート",
"$SYN": "$SYN"
},
"ReturnToMonke": {
"Choose Synapse": "Synapseを選択",
Expand Down
4 changes: 2 additions & 2 deletions packages/synapse-interface/messages/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@
"Telegram": "Telegram",
"Functions": "Fonksiyonlar",
"Developers": "Geliştiriciler",
"$SYN": "$SYN",
"Support": "Destek"
"Support": "Destek",
"$SYN": "$SYN"
},
"ReturnToMonke": {
"Choose Synapse": "Synapse'i Seç",
Expand Down
4 changes: 2 additions & 2 deletions packages/synapse-interface/messages/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@
"Telegram": "Telegram",
"Functions": "功能",
"Developers": "开发者",
"$SYN": "$SYN",
"Support": "支持"
"Support": "支持",
"$SYN": "$SYN"
},
"ReturnToMonke": {
"Choose Synapse": "选择Synapse",
Expand Down
Loading