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;