From 3f70ced465fd516af2ee5b141e76c0bfcc19689c Mon Sep 17 00:00:00 2001 From: Kumaraguru <19eucs071@skcet.ac.in> Date: Wed, 15 Jan 2025 16:51:37 +0000 Subject: [PATCH] adding discord / erc20 linked status in node info --- pages/index.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/pages/index.js b/pages/index.js index f745608..2e606d3 100644 --- a/pages/index.js +++ b/pages/index.js @@ -18,6 +18,7 @@ import { ChevronRight, Globe, Info, + Wallet, } from "lucide-react"; import { LineChart, @@ -55,6 +56,17 @@ if (!supabaseUrl || !supabaseAnonKey) { const ITEMS_PER_PAGE = 5; +// Add Discord icon component +const DiscordIcon = ({ className }) => ( + + + +); + export default function Dashboard() { const [metrics, setMetrics] = useState([]); const [activeNodes, setActiveNodes] = useState([]); @@ -725,6 +737,32 @@ export default function Dashboard() {

CONNECTED DHT PEERS

{node.peer_count}

+
+
+
+ +
+ Discord: + + {node.discord_user_id ? 'Linked' : 'Not linked'} + +
+
+
+ +
+ ERC20 Wallet: + + {node.wallet ? 'Linked' : 'Not linked'} + +
+