hotfix: explorer temporary disable vote instruction card (#15596)
This commit is contained in:
parent
aee7012aed
commit
24af9961d2
|
@ -69,12 +69,14 @@ export function VoteDetailsCard(props: {
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
{info.vote.timestamp && (
|
||||||
<tr>
|
<tr>
|
||||||
<td>Timestamp</td>
|
<td>Timestamp</td>
|
||||||
<td className="text-lg-right text-monospace">
|
<td className="text-lg-right text-monospace">
|
||||||
{displayTimestamp(info.vote.timestamp * 1000)}
|
{displayTimestamp(info.vote.timestamp * 1000)}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
)}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Slots</td>
|
<td>Slots</td>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* eslint-disable @typescript-eslint/no-redeclare */
|
/* eslint-disable @typescript-eslint/no-redeclare */
|
||||||
|
|
||||||
import { array, number, pick, string, StructType } from "superstruct";
|
import { array, number, optional, pick, string, StructType } from "superstruct";
|
||||||
import { Pubkey } from "validators/pubkey";
|
import { Pubkey } from "validators/pubkey";
|
||||||
|
|
||||||
export type VoteInfo = StructType<typeof VoteInfo>;
|
export type VoteInfo = StructType<typeof VoteInfo>;
|
||||||
|
@ -12,6 +12,6 @@ export const VoteInfo = pick({
|
||||||
vote: pick({
|
vote: pick({
|
||||||
hash: string(),
|
hash: string(),
|
||||||
slots: array(number()),
|
slots: array(number()),
|
||||||
timestamp: number(),
|
timestamp: optional(number()),
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
|
@ -34,7 +34,7 @@ import {
|
||||||
useTransactionStatus,
|
useTransactionStatus,
|
||||||
} from "providers/transactions";
|
} from "providers/transactions";
|
||||||
import { Cluster, useCluster } from "providers/cluster";
|
import { Cluster, useCluster } from "providers/cluster";
|
||||||
import { VoteDetailsCard } from "components/instruction/vote/VoteDetailsCard";
|
// import { VoteDetailsCard } from "components/instruction/vote/VoteDetailsCard";
|
||||||
import { UpgradeableBpfLoaderDetailsCard } from "components/instruction/upgradeable-bpf-loader/UpgradeableBpfLoaderDetailsCard";
|
import { UpgradeableBpfLoaderDetailsCard } from "components/instruction/upgradeable-bpf-loader/UpgradeableBpfLoaderDetailsCard";
|
||||||
|
|
||||||
export function InstructionsSection({ signature }: SignatureProps) {
|
export function InstructionsSection({ signature }: SignatureProps) {
|
||||||
|
@ -171,9 +171,8 @@ function renderInstructionCard({
|
||||||
return <StakeDetailsCard {...props} />;
|
return <StakeDetailsCard {...props} />;
|
||||||
case "spl-memo":
|
case "spl-memo":
|
||||||
return <MemoDetailsCard {...props} />;
|
return <MemoDetailsCard {...props} />;
|
||||||
case "vote":
|
/*case "vote":
|
||||||
console.log(props);
|
return <VoteDetailsCard {...props} />;*/
|
||||||
return <VoteDetailsCard {...props} />;
|
|
||||||
default:
|
default:
|
||||||
return <UnknownDetailsCard {...props} />;
|
return <UnknownDetailsCard {...props} />;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue