From cb01e88bc9e99ba8fab24ea39d13df7a78d3e8dc Mon Sep 17 00:00:00 2001 From: Pham Tu Date: Mon, 11 Sep 2023 14:22:08 +0700 Subject: [PATCH] fixed displaying --- src/components/SmartContract/MoreInfo.js | 8 +-- .../ComponentContract/ComponentContract.js | 3 +- .../ComponentContract.module.scss | 6 +++ .../ReadContract/ReadContract.js | 53 +++++++++++-------- .../WriteContract/WriteContract.js | 4 +- 5 files changed, 45 insertions(+), 29 deletions(-) diff --git a/src/components/SmartContract/MoreInfo.js b/src/components/SmartContract/MoreInfo.js index 41a0e36d9..cd9bd496f 100644 --- a/src/components/SmartContract/MoreInfo.js +++ b/src/components/SmartContract/MoreInfo.js @@ -1,8 +1,8 @@ import React from "react"; import PropTypes from "prop-types"; import cn from "classnames/bind"; -import {NavLink} from "react-router-dom"; -import {isNil} from "lodash"; +import { NavLink } from "react-router-dom"; +import { isNil } from "lodash"; import Grid from "@material-ui/core/Grid"; import Skeleton from "@material-ui/lab/Skeleton"; import InfoRow from "src/components/common/InfoRow"; @@ -11,7 +11,7 @@ import consts from "src/constants/consts"; const cx = cn.bind(styles); -const MoreInfo = ({data}) => { +const MoreInfo = ({ data }) => { return (
@@ -57,7 +57,7 @@ const MoreInfo = ({data}) => {
Label
-
{isNil(data?.label) ? "-" : data?.label}
+
{isNil(data?.contract_name) ? "-" : data?.contract_name}
diff --git a/src/containers/VerifiedContract/ComponentContract/ComponentContract.js b/src/containers/VerifiedContract/ComponentContract/ComponentContract.js index 94e64927d..28689f502 100644 --- a/src/containers/VerifiedContract/ComponentContract/ComponentContract.js +++ b/src/containers/VerifiedContract/ComponentContract/ComponentContract.js @@ -183,7 +183,7 @@ export const HandleItemContract = ({ schema, onHandle, handleText, onClickCopy,
{msg.fieldList.map((item, subInd) => ( -
+
{item.isRequired ? "*" : ""} { @@ -202,6 +202,7 @@ export const HandleItemContract = ({ schema, onHandle, handleText, onClickCopy, ))}