diff --git a/components/ActionSheetComponents/EachTrainInfo.js b/components/ActionSheetComponents/EachTrainInfo.js index b90b6b2..84868d7 100644 --- a/components/ActionSheetComponents/EachTrainInfo.js +++ b/components/ActionSheetComponents/EachTrainInfo.js @@ -630,7 +630,7 @@ export const EachTrainInfo = (props) => { /> ほげほげふがふが */} - {trainData.map((i, index) => ( + {trainData.map((i, index) => (i.split(",")[1] == "提" ? : { ); }; +const DataFromButton = ({i}) => { + const [station, se, time] = i.split(","); + return ( + Linking.openURL(time)} + key={station} + > + + + {station} + + + 提供元 + + + + + + ); +} + const StationButton = ({ i, index, diff --git a/components/settings.js b/components/settings.js index f06cd59..e9f3c5d 100644 --- a/components/settings.js +++ b/components/settings.js @@ -165,7 +165,7 @@ export default function Setting(props) { textAlignVertical: "center", }} > - 内部バージョン: 4.6.3.1 + 内部バージョン: 4.6.4 diff --git a/lib/getTrainType.js b/lib/getTrainType.js index 2f19ea3..dce1c42 100644 --- a/lib/getTrainType.js +++ b/lib/getTrainType.js @@ -6,6 +6,8 @@ export const getTrainType = (nameString) => { return { color: "red", name: "特急", data: "express" }; case "NightLTDEXP": return { color: "red", name: "寝台特急", data: "express" }; + case "SPCL": + return { color: "blue", name: "臨時", data: "normal" }; case "Normal": return { color: "white", name: "普通列車", data: "normal" }; default: