Skip to content

Commit

Permalink
chore: update txn builder (#1237)
Browse files Browse the repository at this point in the history
* chore: update field name

* chore: fix txn builder issues
  • Loading branch information
Hemanthghs authored May 15, 2024
1 parent c1939db commit 2bafd31
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const Deposit: React.FC<DepositProps> = (props) => {
name="proposalID"
control={control}
defaultValue={null}
rules={{ required: 'Validator is required' }}
rules={{ required: 'Proposal is required' }}
render={({ field: { onChange, value }, fieldState: { error } }) => (
<Autocomplete
disablePortal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const Vote: React.FC<VoteProps> = (props) => {
name="proposalID"
control={control}
defaultValue={null}
rules={{ required: 'Validator is required' }}
rules={{ required: 'Proposal is required' }}
render={({ field: { onChange, value }, fieldState: { error } }) => (
<Autocomplete
disablePortal
Expand Down Expand Up @@ -228,7 +228,7 @@ const Vote: React.FC<VoteProps> = (props) => {
</div>
</div>
<div className="space-y-2 mt-[14px]">
<div className="text-[14px] font-extralight">Select Proposal</div>
<div className="text-[14px] font-extralight">Select Vote Option</div>
<Controller
name="voteOption"
control={control}
Expand All @@ -252,7 +252,7 @@ const Vote: React.FC<VoteProps> = (props) => {
className="bg-[#FFFFFF0D]"
{...params}
required
placeholder="Select proposal"
placeholder="Select vote option"
error={!!error}
sx={autoCompleteTextFieldStyles}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const SelectTransactionType: React.FC<SelectTransactionTypeProps> = (props) => {
<div className="custom-radio-button-checked"></div>
) : null}
</button>
<div className="text-[14px] font-light">File Upload</div>
<div className="text-[14px] font-light">Upload File</div>
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/utils/chainsInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const networks: Network[] = [
keplrExperimental: false,
leapExperimental: false,
isTestnet: false,
govV1: false,
govV1: true,
explorerTxHashEndpoint: 'https://www.mintscan.io/cosmos/txs/',
config: {
chainId: 'cosmoshub-4',
Expand Down

0 comments on commit 2bafd31

Please sign in to comment.