Add SelectValidator to forms
This commit is contained in:
parent
ded8b665e6
commit
c644e2dff9
@ -1,3 +1,4 @@
|
||||
import SelectValidator from "@/components/SelectValidator";
|
||||
import { MsgWithdrawDelegatorRewardEncodeObject } from "@cosmjs/stargate";
|
||||
import { useEffect, useState } from "react";
|
||||
import { MsgGetter } from "..";
|
||||
@ -63,6 +64,10 @@ const MsgClaimRewardsForm = ({
|
||||
</button>
|
||||
<h2>MsgWithdrawDelegatorReward</h2>
|
||||
<div className="form-item">
|
||||
<SelectValidator
|
||||
validatorAddress={validatorAddress}
|
||||
setValidatorAddress={setValidatorAddress}
|
||||
/>
|
||||
<Input
|
||||
label="Validator Address"
|
||||
name="validator-address"
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import SelectValidator from "@/components/SelectValidator";
|
||||
import { MsgDelegateEncodeObject } from "@cosmjs/stargate";
|
||||
import { useEffect, useState } from "react";
|
||||
import { MsgGetter } from "..";
|
||||
@ -90,6 +91,10 @@ const MsgDelegateForm = ({ delegatorAddress, setMsgGetter, deleteMsg }: MsgDeleg
|
||||
</button>
|
||||
<h2>MsgDelegate</h2>
|
||||
<div className="form-item">
|
||||
<SelectValidator
|
||||
validatorAddress={validatorAddress}
|
||||
setValidatorAddress={setValidatorAddress}
|
||||
/>
|
||||
<Input
|
||||
label="Validator Address"
|
||||
name="validator-address"
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import SelectValidator from "@/components/SelectValidator";
|
||||
import { EncodeObject } from "@cosmjs/proto-signing";
|
||||
import { useEffect, useState } from "react";
|
||||
import { MsgGetter } from "..";
|
||||
@ -106,6 +107,10 @@ const MsgRedelegateForm = ({
|
||||
</button>
|
||||
<h2>MsgBeginRedelegate</h2>
|
||||
<div className="form-item">
|
||||
<SelectValidator
|
||||
validatorAddress={validatorSrcAddress}
|
||||
setValidatorAddress={setValidatorSrcAddress}
|
||||
/>
|
||||
<Input
|
||||
label="Source Validator Address"
|
||||
name="src-validator-address"
|
||||
@ -119,6 +124,10 @@ const MsgRedelegateForm = ({
|
||||
/>
|
||||
</div>
|
||||
<div className="form-item">
|
||||
<SelectValidator
|
||||
validatorAddress={validatorDstAddress}
|
||||
setValidatorAddress={setValidatorDstAddress}
|
||||
/>
|
||||
<Input
|
||||
label="Destination Validator Address"
|
||||
name="dst-validator-address"
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import SelectValidator from "@/components/SelectValidator";
|
||||
import { MsgUndelegateEncodeObject } from "@cosmjs/stargate";
|
||||
import { useEffect, useState } from "react";
|
||||
import { MsgGetter } from "..";
|
||||
@ -94,6 +95,10 @@ const MsgUndelegateForm = ({
|
||||
</button>
|
||||
<h2>MsgUndelegate</h2>
|
||||
<div className="form-item">
|
||||
<SelectValidator
|
||||
validatorAddress={validatorAddress}
|
||||
setValidatorAddress={setValidatorAddress}
|
||||
/>
|
||||
<Input
|
||||
label="Validator Address"
|
||||
name="validator-address"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user