Skip to content

Commit 8d2cf10

Browse files
authored
Merge pull request #8771 from LedgerHQ/feat/qaa-382
[QAA-382] Adding the value of DISABLE_TRANSACTION_BROADCAST
2 parents 278bf59 + 045f1cf commit 8d2cf10

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

apps/ledger-live-desktop/src/renderer/Default.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ export default function Default() {
258258
{process.env.DEBUG_FIRMWARE_UPDATE ? <DebugFirmwareUpdater /> : null}
259259
</DebugWrapper>
260260
{process.env.DISABLE_TRANSACTION_BROADCAST ? (
261-
<DisableTransactionBroadcastWarning />
261+
<DisableTransactionBroadcastWarning
262+
value={process.env.DISABLE_TRANSACTION_BROADCAST}
263+
/>
262264
) : null}
263265
<Switch>
264266
<Route
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
import React from "react";
2-
export const DisableTransactionBroadcastWarning = () => {
2+
3+
interface DisableTransactionBroadcastWarningProps {
4+
value: string | undefined;
5+
}
6+
7+
export const DisableTransactionBroadcastWarning: React.FC<
8+
DisableTransactionBroadcastWarningProps
9+
> = ({ value }) => {
10+
const displayValue = value === "1" ? "TRUE" : value === "0" ? "FALSE" : value;
11+
312
return (
413
<div
514
style={{
615
backgroundColor: "tomato",
716
zIndex: "9999",
817
position: "absolute",
918
fontSize: "10px",
10-
maxWidth: "250px",
19+
maxWidth: "300px",
1120
top: "4px",
1221
left: "150px",
1322
}}
1423
>
15-
DISABLE TRANSACTION BROADCAST APPLIED
24+
DISABLE TRANSACTION BROADCAST APPLIED: {displayValue}
1625
</div>
1726
);
1827
};

0 commit comments

Comments
 (0)