From e977bb29f37dbe757d2b0ff53af666b2db3bdb23 Mon Sep 17 00:00:00 2001 From: harukin-expo-dev-env Date: Mon, 19 Aug 2024 12:39:55 +0000 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/発車時刻表/LED_vidion.js | 43 +++++++----------------- 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/components/発車時刻表/LED_vidion.js b/components/発車時刻表/LED_vidion.js index a417c97..fb628c0 100644 --- a/components/発車時刻表/LED_vidion.js +++ b/components/発車時刻表/LED_vidion.js @@ -63,26 +63,13 @@ export default function LED_vision(props) { useEffect(() => { AS.getItem("LEDSettings/trainIDSwitch").then((data) => { - console.log(data); - if (data == "true") { - setTrainIDSwitch(true); - } else { - setTrainIDSwitch(false); - } + setTrainIDSwitch(data === "true"); }); AS.getItem("LEDSettings/trainDescriptionSwitch").then((data) => { - if (data == "true") { - setTrainDescriptionSwitch(true); - } else { - setTrainDescriptionSwitch(false); - } + setTrainDescriptionSwitch(data == "true"); }); AS.getItem("LEDSettings/finalSwitch").then((data) => { - if (data == "true") { - setFinalSwitch(true); - } else { - setFinalSwitch(false); - } + setFinalSwitch(data == "true"); }); }, []); @@ -520,6 +507,10 @@ const StatusAndDelay = ({ trainDelayStatus }) => { ); }; +const descriptionStyle = { + fontSize: parseInt("16%"), + fontWeight: "bold", +}; const Description = ({ info, numberOfLines = 0, onClick }) => ( ( > {numberOfLines == 1 ? ( - - 運行情報 + + 運行情報 >{" "} ) : ( - <> + > )} - > {info} + {info}