File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
apps/ledger-live-desktop/src/renderer Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11import 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} ;
You can’t perform that action at this time.
0 commit comments