Skip to content

Commit 06192a0

Browse files
committed
fix: update tooltip text for nodestable and whitelist table
1 parent b7b346f commit 06192a0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/nextjs/components/oracle/NodesTable.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ export const NodesTable = () => {
4343
functionName: "getNodeAddresses",
4444
});
4545

46+
const tooltipText =
47+
"This table displays registered oracle nodes that provide price data to the system. Nodes are displayed as inactive if they don't have enough ETH staked. You can edit the skip probability and price variance of an oracle node with the slider.";
48+
4649
return (
4750
<div className="flex flex-col gap-2">
4851
<h2 className="text-xl font-bold">Oracle Nodes</h2>
4952
<div className="bg-base-100 rounded-lg p-4 relative">
50-
<TooltipInfo top={0} right={0} infoText="TODO: Update this tooltip" />
53+
<TooltipInfo top={0} right={0} infoText={tooltipText} />
5154
<div className="overflow-x-auto">
5255
<table className="table w-full">
5356
<thead>

packages/nextjs/components/oracle/whitelist/WhitelistTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const LoadingRow = () => {
2222
const NoNodesRow = () => {
2323
return (
2424
<tr>
25-
<td colSpan={6} className="text-center">
25+
<td colSpan={3} className="text-center">
2626
No nodes found
2727
</td>
2828
</tr>
@@ -58,7 +58,7 @@ export const WhitelistTable = () => {
5858
}))
5959
?.filter(item => !oraclesRemoved?.some(removedOracle => removedOracle?.args?.oracleAddress === item.address));
6060

61-
const tooltipText = `This table displays authorized oracle nodes that provide price data to the system. Nodes are considered active if they've reported within the last 10 seconds. You can edit the price of an oracle node by clicking on the price cell.`;
61+
const tooltipText = `This table displays registered oracle nodes that provide price data to the system. Nodes are considered active if they've reported within the last 10 seconds. You can add a new oracle node by clicking the "Add Oracle Node" button or edit the price of an oracle node.`;
6262

6363
return (
6464
<div className="flex flex-col gap-2">

0 commit comments

Comments
 (0)