renaming components consistently as protobuf definition

This commit is contained in:
magiodev
2024-04-18 10:13:01 +02:00
parent 15e36d8211
commit b5a3148c6b
4 changed files with 9 additions and 9 deletions
@@ -16,7 +16,7 @@ import TxMsgSendDetails from "./TxMsgSendDetails";
import TxMsgSetWithdrawAddressDetails from "./TxMsgSetWithdrawAddressDetails";
import TxMsgTransferDetails from "./TxMsgTransferDetails";
import TxMsgUndelegateDetails from "./TxMsgUndelegateDetails";
import TxMsgUpdateAdminContractDetails from "./TxMsgUpdateAdminContractDetails";
import TxMsgUpdateAdminDetails from "./TxMsgUpdateAdminDetails";
const TxMsgDetails = ({ typeUrl, value: msgValue }: EncodeObject) => {
switch (typeUrl) {
@@ -45,7 +45,7 @@ const TxMsgDetails = ({ typeUrl, value: msgValue }: EncodeObject) => {
case MsgTypeUrls.Migrate:
return <TxMsgMigrateContractDetails msgValue={msgValue} />;
case MsgTypeUrls.UpdateAdmin:
return <TxMsgUpdateAdminContractDetails msgValue={msgValue} />;
return <TxMsgUpdateAdminDetails msgValue={msgValue} />;
default:
return null;
}
@@ -7,17 +7,17 @@ import { MsgCodecs, MsgTypeUrls } from "../../../../types/txMsg";
import Input from "../../../inputs/Input";
import StackableContainer from "../../../layout/StackableContainer";
interface MsgUpdateAdminContractFormProps {
interface MsgUpdateAdminFormProps {
readonly fromAddress: string;
readonly setMsgGetter: (msgGetter: MsgGetter) => void;
readonly deleteMsg: () => void;
}
const MsgUpdateAdminContractForm = ({
const MsgUpdateAdminForm = ({
fromAddress,
setMsgGetter,
deleteMsg,
}: MsgUpdateAdminContractFormProps) => {
}: MsgUpdateAdminFormProps) => {
const { chain } = useChains();
const [contractAddress, setContractAddress] = useState("");
@@ -67,7 +67,7 @@ const MsgUpdateAdminContractForm = ({
<button className="remove" onClick={() => deleteMsg()}>
</button>
<h2>MsgUpdateAdminContract</h2>
<h2>MsgUpdateAdmin</h2>
<div className="form-item">
<Input
label="Contract Address"
@@ -125,4 +125,4 @@ const MsgUpdateAdminContractForm = ({
);
};
export default MsgUpdateAdminContractForm;
export default MsgUpdateAdminForm;
@@ -12,7 +12,7 @@ import MsgSendForm from "./MsgSendForm";
import MsgSetWithdrawAddressForm from "./MsgSetWithdrawAddressForm";
import MsgTransferForm from "./MsgTransferForm";
import MsgUndelegateForm from "./MsgUndelegateForm";
import MsgUpdateAdminContractForm from "@/components/forms/CreateTxForm/MsgForm/MsgUpdateAdminContractForm";
import MsgUpdateAdminForm from "@/components/forms/CreateTxForm/MsgForm/MsgUpdateAdminForm";
interface MsgFormProps {
readonly msgType: MsgTypeUrl;
@@ -48,7 +48,7 @@ const MsgForm = ({ msgType, senderAddress, ...restProps }: MsgFormProps) => {
case MsgTypeUrls.Migrate:
return <MsgMigrateContractForm fromAddress={senderAddress} {...restProps} />;
case MsgTypeUrls.UpdateAdmin:
return <MsgUpdateAdminContractForm fromAddress={senderAddress} {...restProps} />;
return <MsgUpdateAdminForm fromAddress={senderAddress} {...restProps} />;
default:
return null;
}