From 045f1cf71cf4259f4bfec91997436ed082b1eefe Mon Sep 17 00:00:00 2001 From: Victor Alber Date: Mon, 30 Dec 2024 10:51:09 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=A8=20Adding=20the=20value=20o?= =?UTF-8?q?f=20DISABLE=5FTRANSACTION=5FBROADCAST?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ledger-live-desktop/src/renderer/Default.tsx | 4 +++- .../debug/DisableTransactionBroadcastWarning.tsx | 15 ++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/apps/ledger-live-desktop/src/renderer/Default.tsx b/apps/ledger-live-desktop/src/renderer/Default.tsx index 421e5089469b..c477c801e412 100644 --- a/apps/ledger-live-desktop/src/renderer/Default.tsx +++ b/apps/ledger-live-desktop/src/renderer/Default.tsx @@ -258,7 +258,9 @@ export default function Default() { {process.env.DEBUG_FIRMWARE_UPDATE ? : null} {process.env.DISABLE_TRANSACTION_BROADCAST ? ( - + ) : null} { + +interface DisableTransactionBroadcastWarningProps { + value: string | undefined; +} + +export const DisableTransactionBroadcastWarning: React.FC< + DisableTransactionBroadcastWarningProps +> = ({ value }) => { + const displayValue = value === "1" ? "TRUE" : value === "0" ? "FALSE" : value; + return (
{ zIndex: "9999", position: "absolute", fontSize: "10px", - maxWidth: "250px", + maxWidth: "300px", top: "4px", left: "150px", }} > - DISABLE TRANSACTION BROADCAST APPLIED + DISABLE TRANSACTION BROADCAST APPLIED: {displayValue}
); };