diff --git a/src/components/configuration.tsx b/src/components/configuration.tsx
index 2d2db5d..1ff9015 100644
--- a/src/components/configuration.tsx
+++ b/src/components/configuration.tsx
@@ -227,6 +227,28 @@ const App = ({ onConfigurationSave }: { onConfigurationSave?: () => void }) => {
setCurrencies(currencies);
}
+ function getLogo(type: string) {
+ switch (type) {
+ case "binance":
+ return BinanceLogo;
+ case "okex":
+ return OkexLogo;
+ case "gate":
+ return GateLogo;
+ case "btc":
+ return BTCLogo;
+ case "erc20":
+ return ETHLogo;
+ case "sol":
+ return SOLLogo;
+ case "doge":
+ return DOGELogo;
+
+ default:
+ return "";
+ }
+ }
+
function loadConfiguration() {
getConfiguration()
.then((d) => {
@@ -376,26 +398,10 @@ const App = ({ onConfigurationSave }: { onConfigurationSave?: () => void }) => {
className="h-4 w-4 text-muted-foreground hidden group-hover:inline-block mr-2"
onClick={() => handleRemoveExchange(idx)}
/>
- {/* binance */}
- {ex.type === "binance" && (
-
- )}
- {ex.type === "gate" && (
-
- )}
- {/* okex */}
- {ex.type === "okex" && (
-
- )}
+
@@ -438,30 +444,10 @@ const App = ({ onConfigurationSave }: { onConfigurationSave?: () => void }) => {
className="h-4 w-4 text-muted-foreground hidden group-hover:inline-block mr-2"
onClick={() => handleRemoveWallet(idx)}
/>
- {w.type === "btc" && (
-
- )}
- {w.type === "erc20" && (
-
- )}
- {w.type === "doge" && (
-
- )}
- {w.type === "sol" && (
-
- )}
+
@@ -753,6 +739,10 @@ const App = ({ onConfigurationSave }: { onConfigurationSave?: () => void }) => {
Cex
{cexOptions.map((o) => (
+
{o.label}
))}
@@ -918,6 +908,10 @@ const App = ({ onConfigurationSave }: { onConfigurationSave?: () => void }) => {
Wallet Type
{walletOptions.map((o) => (
+
{o.label}
))}