diff --git a/components/発車時刻表/EachData.tsx b/components/発車時刻表/EachData.tsx index ab39362..4de1db2 100644 --- a/components/発車時刻表/EachData.tsx +++ b/components/発車時刻表/EachData.tsx @@ -209,6 +209,7 @@ export const EachData: FC = (props) => { trainIDSwitch={trainIDSwitch} trainID={d.train} type={train.type} + isThrew={d.isThrough} /> diff --git a/components/発車時刻表/LED_inside_Component/TrainName.tsx b/components/発車時刻表/LED_inside_Component/TrainName.tsx index 88e87e9..118c5a9 100644 --- a/components/発車時刻表/LED_inside_Component/TrainName.tsx +++ b/components/発車時刻表/LED_inside_Component/TrainName.tsx @@ -7,9 +7,10 @@ type Props = { trainIDSwitch: boolean; trainID: string; type: string; + isThrew: boolean; }; export const TrainName: FC = (props) => { - const { trainName, trainNumDistance, trainIDSwitch, trainID, type } = props; + const { trainName, trainNumDistance, trainIDSwitch, trainID, type, isThrew } = props; const { name, color } = getTrainType(type); const TrainNumber = trainNumDistance != undefined @@ -26,7 +27,7 @@ export const TrainName: FC = (props) => { fontWeight: "bold", }} > - {trainIDSwitch ? trainID : `${name} ${trainName}${TrainNumber}`} + {trainIDSwitch ? trainID : `${isThrew ? `★通過列車★` : `${name} ${trainName}${TrainNumber}`} `} );