From 7d7779e0e1c4b52cfe0e56fa8c1ff14e381e8d7f Mon Sep 17 00:00:00 2001 From: Superlagg Date: Tue, 11 Jul 2023 20:01:45 -0700 Subject: [PATCH] lint my ass --- tgui/packages/tgui/interfaces/SecondWind.js | 22 ++++++++++----------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/tgui/packages/tgui/interfaces/SecondWind.js b/tgui/packages/tgui/interfaces/SecondWind.js index 3fe3c977b8f..7aeb74360b5 100644 --- a/tgui/packages/tgui/interfaces/SecondWind.js +++ b/tgui/packages/tgui/interfaces/SecondWind.js @@ -18,7 +18,7 @@ export const SecondWind = (props, context) => { } = data.BodyData; const FormattedTxt = FormatSecondWindBody(BodyFill); let VertSize = 250; - if(UIState == "SWReadMe") { + if (UIState === "SWReadMe") { VertSize = 400; } return ( @@ -140,17 +140,15 @@ const SecondWindInfoButton = (props, context) => { } = data; let ActDo = 'GoReadme'; let ButtonIcon = 'info'; - if (UIState == "SWReadMe") { + if (UIState === "SWReadMe") { ActDo = 'GoHome'; ButtonIcon = 'times'; } return ( + onClick={() => act(ActDo)} /> ); }; @@ -173,16 +171,16 @@ const SecondWindBottomBar = (props, context) => { ShowButtonOne = true; ButtonHeight = "2em"; break; - case "OnlyBack": + case "OnlyBack": ShowButtonTwo = true; ButtonHeight = "2em"; break; - case "Both": + case "Both": ShowButtonOne = true; ShowButtonTwo = true; ButtonHeight = "2em"; break; - default: + default: ShowButtonOne = false; ShowButtonTwo = false; ButtonHeight = "0px"; @@ -197,10 +195,10 @@ const SecondWindBottomBar = (props, context) => { mt={1}> - {!!ShowButtonOne && } + {!!ShowButtonOne && } - {!!ShowButtonTwo && } + {!!ShowButtonTwo && } @@ -217,7 +215,7 @@ const SecondWindRevive = (props, context) => { } = props; let ButtonLabel = "Revive"; let ButtonIcon = "heartbeat"; - if (UIState == "SWConfirm") { + if (UIState === "SWConfirm") { ButtonLabel = "Confirm"; ButtonIcon = "check"; } @@ -247,7 +245,7 @@ const SecondWindBack = (props, context) => { } = props; let ButtonLabel = "Back"; let ButtonIcon = "times"; - if (UIState == "SWConfirm") { + if (UIState === "SWConfirm") { ButtonLabel = "Cancel"; ButtonIcon = "times"; }