休編を追加

This commit is contained in:
harukin-expo-dev-env
2025-09-09 15:10:15 +00:00
parent ea2ae7037a
commit a593958feb

View File

@@ -3,7 +3,15 @@ import { View, Text, TouchableWithoutFeedback } from "react-native";
import dayjs from "dayjs";
import lineColorList from "../../../assets/originData/lineColorList";
type seTypes = "発編" | "着編" | "通編" | "頃編" | "発" | "着" | string;
type seTypes =
| "発編"
| "着編"
| "通編"
| "頃編"
| "発"
| "着"
| "休編"
| string;
type currentTrainDataType = {
Index: number;
@@ -68,6 +76,8 @@ export const EachStopList: FC<props> = ({
return ["通過", "community"];
case "頃編":
return ["頃", "community"];
case "休編":
return ["運休", "community"];
default:
return [se, "normal"];
}
@@ -87,7 +97,12 @@ export const EachStopList: FC<props> = ({
}
key={station}
>
<View style={{ flexDirection: "row", backgroundColor: "#ffffffc2" }}>
<View
style={{
flexDirection: "row",
backgroundColor: se != "運休" ? "#ffffffc2" : "#474747c2",
}}
>
<View
style={{
width: 35,