Skip to content
Snippets Groups Projects
Commit 03210a7d authored by Jakub Lachór's avatar Jakub Lachór
Browse files

Line-through display for inactive witness

parent e5622698
No related branches found
No related tags found
1 merge request!358Line-through display for inactive witness
Pipeline #99293 canceled
......@@ -15,6 +15,7 @@ export const config = {
home: 20
},
maxWitnessVotes: 30,
inactiveWitnessKey:'STM1111111111111111111111111111111114T1Anm',
maxDelegatorsCount: 1000,
lastBlocksForWidget: 20,
firstBlockTime: "2016-03-24T16:05:00",
......
......@@ -13,7 +13,7 @@ import VotersDialog from "@/components/Witnesses/VotersDialog";
import VotesHistoryDialog from "@/components/Witnesses/VotesHistoryDialog";
import useWitnesses from "@/api/common/useWitnesses";
import { config } from "@/Config";
import { formatNumber, formatPercent } from "@/lib/utils";
import { cn, formatNumber, formatPercent } from "@/lib/utils";
import Head from "next/head";
export default function Witnesses() {
......@@ -83,26 +83,21 @@ export default function Witnesses() {
data-testid="witnesses-table-row"
>
<TableCell
className={
`${
index % 2 === 0
? "bg-gray-800 md:bg-inherit"
: "bg-gray-900 md:bg-inherit"
}` + " sticky left-0 min-w-[20px]"
}
className={cn("sticky left-0 min-w-[20px]", {
"bg-gray-800 md:bg-inherit": index % 2 === 0,
"bg-gray-900 md:bg-inherit": index % 2 !== 0
})}
>
{index + 1}
</TableCell>
<TableCell
className={
`${
index % 2 === 0
? "bg-gray-800 md:bg-inherit"
: "bg-gray-900 md:bg-inherit"
}` + " text-explorer-turquoise sticky left-11"
}
className={cn("text-explorer-turquoise sticky left-11", {
"bg-gray-800 md:bg-inherit": index % 2 === 0,
"bg-gray-900 md:bg-inherit": index % 2 !== 0,
"line-through": singleWitness.signing_key === config.inactiveWitnessKey,
})}
>
{" "}
<Link
href={`/@${singleWitness.witness}`}
data-testid="witness-name"
......
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