From 93f9f48ecbe52aa2af5b0d731a19495145f218a7 Mon Sep 17 00:00:00 2001 From: harukin-OneMix4 Date: Tue, 29 Nov 2022 16:42:00 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=97=E3=81=8A=E3=81=8B=E3=81=9C=E3=81=8C?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=E3=83=90?= =?UTF-8?q?=E3=82=B0=E3=81=AE=E4=BF=AE=E6=AD=A3=E3=80=81=E3=82=B9=E3=83=9E?= =?UTF-8?q?=E3=83=BC=E3=83=88=E9=A7=85=E3=81=A1=E3=82=83=E3=82=93=E3=81=AE?= =?UTF-8?q?=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/settings.js | 2 +- components/発車時刻表/LED_vidion.js | 2 +- menu.js | 22 ++++++++++++++++------ 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/components/settings.js b/components/settings.js index 6680fa0..019e8f2 100644 --- a/components/settings.js +++ b/components/settings.js @@ -102,7 +102,7 @@ export default function Setting(props) { textAlignVertical: "center", }} > - 内部バージョン: 4.4.2.2 + 内部バージョン: 4.4.2.3 diff --git a/components/発車時刻表/LED_vidion.js b/components/発車時刻表/LED_vidion.js index 6314246..a3d86ce 100644 --- a/components/発車時刻表/LED_vidion.js +++ b/components/発車時刻表/LED_vidion.js @@ -239,7 +239,7 @@ export default function LED_vision(props) { })() + " " + train.trainName + - (!train.trainNumDistance + (train.trainNumDistance != undefined ? "" : parseInt( d.train.replace("M", "").replace("D", "") diff --git a/menu.js b/menu.js index 7539815..3f9a984 100644 --- a/menu.js +++ b/menu.js @@ -78,11 +78,7 @@ export default function Menu(props) { }, []); const [originalStationList, setOriginalStationList] = useState(); - useEffect(() => { - getStationList().then((stationList) => { - setOriginalStationList(stationList); - }); - }, []); + useEffect(() => getStationList().then(setOriginalStationList), []); const [stationName, setStationName] = useState(undefined); const [currentStation, setCurrentStation] = useState(undefined); @@ -147,7 +143,7 @@ export default function Menu(props) { ) .then((response) => response.text()) .then((data) => setDelayData(data !== "" ? data.split("^") : null)) - .then(() => LayoutAnimation.easeInEaseOut()) + .then(LayoutAnimation.easeInEaseOut) .then(() => setGetTime(new Date())) .finally(() => setLoadingDelayData(false)); }, [loadingDelayData]); @@ -379,6 +375,20 @@ export default function Menu(props) { 旅行ツアー + + Linking.openURL("https://www.jr-eki.com/smart-eki/index.html") + } + > + + スマートえきちゃん + + + JR四国のチケットレススマホアプリです。 + +