From 9ccdd9928656bdd66cb3034b081c8f277f5df210 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Tue, 11 Jun 2024 11:24:04 +0200 Subject: [PATCH] Add new detail view --- .../TransactionInfo/TxMsgVoteDetails.tsx | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 components/dataViews/TransactionInfo/TxMsgVoteDetails.tsx diff --git a/components/dataViews/TransactionInfo/TxMsgVoteDetails.tsx b/components/dataViews/TransactionInfo/TxMsgVoteDetails.tsx new file mode 100644 index 0000000..9f3e4c7 --- /dev/null +++ b/components/dataViews/TransactionInfo/TxMsgVoteDetails.tsx @@ -0,0 +1,51 @@ +import { printVoteOption } from "@/lib/gov"; +import { MsgVote } from "cosmjs-types/cosmos/gov/v1beta1/tx"; + +interface TxMsgVoteDetailsProps { + readonly msgValue: MsgVote; +} + +const TxMsgVoteDetails = ({ msgValue }: TxMsgVoteDetailsProps) => { + return ( + <> +
  • +

    MsgVote

    +
  • +
  • + +
    {msgValue.proposalId.toString()}
    +
  • +
  • + +
    {printVoteOption(msgValue.option)}
    +
  • + + + ); +}; + +export default TxMsgVoteDetails;