diff --git a/components/dataViews/TransactionInfo/TxMsgClaimRewardsDetails.tsx b/components/dataViews/TransactionInfo/TxMsgClaimRewardsDetails.tsx new file mode 100644 index 0000000..85357e3 --- /dev/null +++ b/components/dataViews/TransactionInfo/TxMsgClaimRewardsDetails.tsx @@ -0,0 +1,47 @@ +import { TxMsgClaimRewards } from "../../../types/txMsg"; +import HashView from "../HashView"; + +interface TxMsgClaimRewardsDetailsProps { + readonly msg: TxMsgClaimRewards; +} + +const TxMsgClaimRewardsDetails = ({ msg }: TxMsgClaimRewardsDetailsProps) => ( + <> +
  • +

    MsgWithdrawDelegatorReward

    +
  • +
  • + +
    + +
    +
  • + + +); + +export default TxMsgClaimRewardsDetails; diff --git a/components/dataViews/TransactionInfo/TxMsgDelegateDetails.tsx b/components/dataViews/TransactionInfo/TxMsgDelegateDetails.tsx new file mode 100644 index 0000000..7b36a44 --- /dev/null +++ b/components/dataViews/TransactionInfo/TxMsgDelegateDetails.tsx @@ -0,0 +1,57 @@ +import { useAppContext } from "../../../context/AppContext"; +import { printableCoins } from "../../../lib/displayHelpers"; +import { TxMsgDelegate } from "../../../types/txMsg"; +import HashView from "../HashView"; + +interface TxMsgDelegateDetailsProps { + readonly msg: TxMsgDelegate; +} + +const TxMsgDelegateDetails = ({ msg }: TxMsgDelegateDetailsProps) => { + const { state } = useAppContext(); + + return ( + <> +
  • +

    MsgDelegate

    +
  • +
  • + +
    {printableCoins(msg.value.amount, state.chain)}
    +
  • +
  • + +
    + +
    +
  • + + + ); +}; + +export default TxMsgDelegateDetails; diff --git a/components/dataViews/TransactionInfo/TxMsgRedelegateDetails.tsx b/components/dataViews/TransactionInfo/TxMsgRedelegateDetails.tsx new file mode 100644 index 0000000..eb04b44 --- /dev/null +++ b/components/dataViews/TransactionInfo/TxMsgRedelegateDetails.tsx @@ -0,0 +1,63 @@ +import { useAppContext } from "../../../context/AppContext"; +import { printableCoins } from "../../../lib/displayHelpers"; +import { TxMsgRedelegate } from "../../../types/txMsg"; +import HashView from "../HashView"; + +interface TxMsgRedelegateDetailsProps { + readonly msg: TxMsgRedelegate; +} + +const TxMsgRedelegateDetails = ({ msg }: TxMsgRedelegateDetailsProps) => { + const { state } = useAppContext(); + + return ( + <> +
  • +

    MsgBeginRedelegate

    +
  • +
  • + +
    {printableCoins(msg.value.amount, state.chain)}
    +
  • +
  • + +
    + +
    +
  • +
  • + +
    + +
    +
  • + + + ); +}; + +export default TxMsgRedelegateDetails; diff --git a/components/dataViews/TransactionInfo/TxMsgSendDetails.tsx b/components/dataViews/TransactionInfo/TxMsgSendDetails.tsx new file mode 100644 index 0000000..6e1c4ee --- /dev/null +++ b/components/dataViews/TransactionInfo/TxMsgSendDetails.tsx @@ -0,0 +1,57 @@ +import { useAppContext } from "../../../context/AppContext"; +import { printableCoins } from "../../../lib/displayHelpers"; +import { TxMsgSend } from "../../../types/txMsg"; +import HashView from "../HashView"; + +interface TxMsgSendDetailsProps { + readonly msg: TxMsgSend; +} + +const TxMsgSendDetails = ({ msg }: TxMsgSendDetailsProps) => { + const { state } = useAppContext(); + + return ( + <> +
  • +

    MsgSend

    +
  • +
  • + +
    {printableCoins(msg.value.amount, state.chain)}
    +
  • +
  • + +
    + +
    +
  • + + + ); +}; + +export default TxMsgSendDetails; diff --git a/components/dataViews/TransactionInfo/TxMsgUndelegateDetails.tsx b/components/dataViews/TransactionInfo/TxMsgUndelegateDetails.tsx new file mode 100644 index 0000000..26f7bd2 --- /dev/null +++ b/components/dataViews/TransactionInfo/TxMsgUndelegateDetails.tsx @@ -0,0 +1,57 @@ +import { useAppContext } from "../../../context/AppContext"; +import { printableCoins } from "../../../lib/displayHelpers"; +import { TxMsgUndelegate } from "../../../types/txMsg"; +import HashView from "../HashView"; + +interface TxMsgUndelegateDetailsProps { + readonly msg: TxMsgUndelegate; +} + +const TxMsgUndelegateDetails = ({ msg }: TxMsgUndelegateDetailsProps) => { + const { state } = useAppContext(); + + return ( + <> +
  • +

    MsgUndelegate

    +
  • +
  • + +
    {printableCoins(msg.value.amount, state.chain)}
    +
  • +
  • + +
    + +
    +
  • + + + ); +}; + +export default TxMsgUndelegateDetails;