Skip to content
Snippets Groups Projects
Commit 22d922d7 authored by mcfarhat's avatar mcfarhat
Browse files

resolve 286 enhancement - add witness vote count

parent 398a449f
No related branches found
No related tags found
1 merge request!354resolve 286 enhancement - add witness vote count
Pipeline #99212 failed
......@@ -14,6 +14,7 @@ export const config = {
witnesses: 200,
home: 20
},
maxWitnessVotes: 30,
lastBlocksForWidget: 20,
firstBlockTime: "2016-03-24T16:05:00",
precisions: {
......
......@@ -4,6 +4,7 @@ import Link from "next/link";
import { Card, CardContent, CardHeader } from "../ui/card";
import { Table, TableBody, TableRow, TableCell } from "../ui/table";
import { cn } from "@/lib/utils";
import { config } from "@/Config";
type AccountWitnessVotesCardProps = {
voters: string[];
......@@ -61,7 +62,7 @@ const AccountWitnessVotesCard: React.FC<AccountWitnessVotesCardProps> = ({
onClick={handlePropertiesVisibility}
className="h-full flex justify-between align-center p-2 hover:bg-slate-600 cursor-pointer px-4"
>
<div className="text-lg">Witness Votes</div>
<div className="text-lg">Witness Votes ({voters.length} / {config.maxWitnessVotes})</div>
{isPropertiesHidden ? <ArrowDown /> : <ArrowUp />}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment