From b551c7506125fdea407dda4e5fbbf9cc3492aebd Mon Sep 17 00:00:00 2001 From: harukin-OneMix4 Date: Tue, 6 Feb 2024 16:02:23 +0900 Subject: [PATCH] =?UTF-8?q?=E5=81=9C=E8=BB=8A=E9=A7=85=E6=83=85=E5=A0=B1?= =?UTF-8?q?=E7=AD=89=E3=82=92sticky-header=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ActionSheetComponents/EachTrainInfo.js | 107 +++++++++--------- 1 file changed, 53 insertions(+), 54 deletions(-) diff --git a/components/ActionSheetComponents/EachTrainInfo.js b/components/ActionSheetComponents/EachTrainInfo.js index e88a619..0c961c5 100644 --- a/components/ActionSheetComponents/EachTrainInfo.js +++ b/components/ActionSheetComponents/EachTrainInfo.js @@ -67,9 +67,6 @@ export const EachTrainInfo = (props) => { showNearTrain.forEach((d) => { const [station, se, time] = d.split(","); - console.log(trainData); //trainDataは現在の列車の停車駅リスト - console.log(station); //showNearTrainは裏列車の停車駅リスト - console.log(trainData[0]); if (station == trainData[0].split(",")[0]) setHeadStation(trainData[0].split(",")[0]); if (station == trainData[trainData.length - 1].split(",")[0]) @@ -556,57 +553,6 @@ export const EachTrainInfo = (props) => { */} )} - - - 停車駅 - - - {!isNaN(currentTrainData?.delay) && - currentTrainData?.delay != 0 && ( - - (定刻) - - )} - - 見込 - - - - - { ), backgroundColor: "white", }} + stickyHeaderIndices={[0]} > + + + 停車駅 + + + {!isNaN(currentTrainData?.delay) && + currentTrainData?.delay != 0 && ( + + (定刻) + + )} + + 見込 + + + + + {headStation && !isConcatNear && ( openBackTrainInfo(headStation)}