From 3249bb742cf5360b451a66ab6e53a1ef74e2dcbf Mon Sep 17 00:00:00 2001 From: Keith Date: Tue, 2 Apr 2024 15:37:55 +0900 Subject: [PATCH 1/2] fix: fix unused class name --- src/pages/Transaction/TransactionCell/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Transaction/TransactionCell/index.tsx b/src/pages/Transaction/TransactionCell/index.tsx index e81434a38..f0b9170d6 100644 --- a/src/pages/Transaction/TransactionCell/index.tsx +++ b/src/pages/Transaction/TransactionCell/index.tsx @@ -56,7 +56,7 @@ export const Addr: FC<{ address: string; isCellBase: boolean }> = ({ address, is }> - + {alias} From 346f4c78ebabaec44491a925d12e0424cf3cb402 Mon Sep 17 00:00:00 2001 From: Keith Date: Tue, 2 Apr 2024 15:45:49 +0900 Subject: [PATCH 2/2] fix: fix json of decode btc time lock --- src/components/Decoder/index.tsx | 8 +++----- src/components/Decoder/styles.module.scss | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/Decoder/index.tsx b/src/components/Decoder/index.tsx index f36506004..d030e507c 100644 --- a/src/components/Decoder/index.tsx +++ b/src/components/Decoder/index.tsx @@ -197,12 +197,10 @@ const Decoder = () => { } case DecodeMethod.BTCTimeLock: { const res = parseBtcTimeLockArgs(v) + const json = { ...res, script: JSON.stringify(res.script, null, 2) } return { - display: jsonToList({ - ...res, - script: JSON.stringify(res.script, null, 2), - }), - copy: res, + display: jsonToList(json), + copy: json, } } case DecodeMethod.Address: { diff --git a/src/components/Decoder/styles.module.scss b/src/components/Decoder/styles.module.scss index 9eb716437..cd59660bf 100644 --- a/src/components/Decoder/styles.module.scss +++ b/src/components/Decoder/styles.module.scss @@ -30,6 +30,7 @@ align-items: center; padding: 0.5rem calc(1.5rem - 2px); cursor: pointer; + white-space: nowrap; &::after { content: '';