-
+ |
+ setIsSignerKeyHovered(true)}
+ onMouseLeave={() => setIsSignerKeyHovered(false)}
+ >
+
+ {truncateMiddle(signerKey)}
+
+
+
+ |
+
- {index + 1}
+ {getEntityName(signerKey)}
|
-
-
- {truncateMiddle(signerKey)}
- {truncateMiddle(signerKey)}
+
+ {numStackers}
|
-
- {getEntityName(signerKey)}
+
+ {`${votingPower.toFixed(2)}%`}
|
-
- {stackers.slice(0, NUM_OF_ADDRESSES_TO_SHOW).map((stacker, index) => (
-
-
- {truncateMiddle(stacker.stacker_address, 5, 5)}
-
- {index < stackers.length - 1 && (
-
- ,
-
- )}
- {stackers && stackers.length > NUM_OF_ADDRESSES_TO_SHOW ? (
-
- +{stackers.length - NUM_OF_ADDRESSES_TO_SHOW} more
-
- ) : null}
-
- ))}
-
+
+ {Number(stxStaked.toFixed(0)).toLocaleString()}
+
|
- {`${votingPower.toFixed(2)}%`}
+ {formatSignerLatency(latency, missing)}
|
- {Number(stxStaked.toFixed(0)).toLocaleString()}
+ {`${formatSignerProposalMetric(approved)} / ${formatSignerProposalMetric(
+ rejected
+ )} / ${formatSignerProposalMetric(missing)}`}
|
@@ -179,21 +209,48 @@ export function SignersTableLayout({
signersTableRows,
votingPowerSortOrder,
setVotingPowerSortOrder,
+ cycleFilterOnSubmitHandler,
+ selectedCycle,
+ currentCycleId,
}: {
numSigners: ReactNode;
signersTableHeaders: ReactNode;
signersTableRows: ReactNode;
votingPowerSortOrder: VotingPowerSortOrder;
setVotingPowerSortOrder: (order: VotingPowerSortOrder) => void;
+ cycleFilterOnSubmitHandler: (cycle: string) => void;
+ selectedCycle: string;
+ currentCycleId: string;
}) {
return (