Skip to content

Commit

Permalink
BugFix : Issue with strange box next to address
Browse files Browse the repository at this point in the history
Feature : added Description, locked until to Time Freeze TX
  • Loading branch information
fl-y committed Apr 7, 2020
1 parent f4113aa commit 7db347a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/components/Account/Address/Address.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
width: 50px;
height: 30px;
position: relative;
overflow-x: hidden;
background-color: transparent;
overflow: hidden;
.copied {
top: 3px;
width: 100%;
Expand Down
16 changes: 10 additions & 6 deletions src/components/Tx/TxData/TxMessage/TxMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,16 @@ export default function({msg, txData}) {
)}
{type === txTypes.TOKENS.TIME_UNLOCK ? <InfoRow label={"Lock ID"}>{value.time_lock_id}</InfoRow> : undefined}
{type === txTypes.TOKENS.TIME_LOCK ? (
<InfoRow label={"Value"}>
<span className={cx("flexIt")}>
<Decimal fontSizeBase={15} value={divide(value?.amount?.[0]?.amount, consts.NUM.BASE_MULT)} />
<span className={cx("currency", {BNB: value?.amount?.[0]?.denom === "BNB"})}>{value?.amount?.[0]?.denom?.split("-")[0]}</span>
</span>
</InfoRow>
<>
<InfoRow label={"Value"}>
<span className={cx("flexIt")}>
<Decimal fontSizeBase={15} value={divide(value?.amount?.[0]?.amount, consts.NUM.BASE_MULT)} />
<span className={cx("currency", {BNB: value?.amount?.[0]?.denom === "BNB"})}>{value?.amount?.[0]?.denom?.split("-")[0]}</span>
</span>
</InfoRow>
<InfoRow label={"Description"}>{value?.description}</InfoRow>
<InfoRow label={"Locked until"}>{getTotalTime(Number(value?.lock_time) * 1000)}</InfoRow>
</>
) : (
undefined
)}
Expand Down

0 comments on commit 7db347a

Please sign in to comment.