条件のミスの修正

This commit is contained in:
harukin-expo-dev-env 2024-09-09 09:18:37 +00:00
parent 4bcd8d2143
commit 30662ab10c
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ export const HeaderText: FC<Props> = ({
}, [data.limited, trainData]);
return (
<View style={{ padding: 10, flexDirection: "row", alignItems: "center" }}>
<TrainIconStatus {...{ data, navigate, from: "menu" }} />
<TrainIconStatus {...{ data, navigate, from}}/>
<Text style={textConfig}>{trainName}</Text>
<View style={{ flex: 1 }} />
<Text style={textConfig}>

View File

@ -72,7 +72,7 @@ export const TrainIconStatus: FC<Props> = ({ data, navigate, from }) => {
onPress={() => {
navigate("howto", {
info: "https://www.jr-eki.com/aptrain/index.html",
goTo: from,
goTo: from == "LED" ? "menu" : from,
});
SheetManager.hide("EachTrainInfo");
}}