diff --git a/components/molecules/Connectors.js b/components/molecules/Connectors.js index 88c9702..ecaecc2 100644 --- a/components/molecules/Connectors.js +++ b/components/molecules/Connectors.js @@ -5,11 +5,12 @@ export const Connectors = ({ address, idx, setIdx, + connectIdx }) => { return ( <> - {address && ( + {address && connectIdx && ( { + const loadRecords = async () => { + const response = await (await fetch(`/api/sign/get/${account}`)).json(); + setRecords(response.records); + }; + account && loadRecords(); + }, [account]); return (
@@ -104,57 +116,49 @@ export default function HoprAllocation() {
- After launch, this panel will show your node stats, it’s - on-chain activity, and instructions on how to claim your NFT. + Verify your node to register your on-chain activity. You’ll + be airdropped an NFT in the xDAI network usable in our staking + program based on the nodes you register and their on-chain activity.

Please make sure to verify your node in our{" "} - node{" "}page to be able to connect your node(s) - with your Ethereum wallet. + node page to be able to connect your + node(s) with your Ethereum wallet.
+
+
-
- {/* - - - - - - - - - {dataTable.map((e, index) => { - const { rank, address, prize } = e; - return ( - - - - - - ); - })} - -
RankUserPrize
{rank} - - link -
- {address.slice(0, 5)} - ... - {address.slice(-5)} -
-
-
{prize}
*/} -
+
+ {account && ( +
+ + + + + + + + + + + + {records.map((hoprNode, index) => { + return ( + + + + + ); + })} + +
+ verified nodes +
accountnode
{truncate(account)}{truncate(hoprNode)}
+
+ )}
diff --git a/pages/node.js b/pages/node.js index 90e5c95..ed9eadb 100644 --- a/pages/node.js +++ b/pages/node.js @@ -74,7 +74,7 @@ export default function Help() { - + {account && library && idx && }