LEDに通過列車であることを明示するように変更
This commit is contained in:
@@ -209,6 +209,7 @@ export const EachData: FC<Props> = (props) => {
|
||||
trainIDSwitch={trainIDSwitch}
|
||||
trainID={d.train}
|
||||
type={train.type}
|
||||
isThrew={d.isThrough}
|
||||
/>
|
||||
<LastStation lastStation={d.lastStation} ToData={train.ToData} />
|
||||
<DependTime time={d.time} />
|
||||
|
@@ -7,9 +7,10 @@ type Props = {
|
||||
trainIDSwitch: boolean;
|
||||
trainID: string;
|
||||
type: string;
|
||||
isThrew: boolean;
|
||||
};
|
||||
export const TrainName: FC<Props> = (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> = (props) => {
|
||||
fontWeight: "bold",
|
||||
}}
|
||||
>
|
||||
{trainIDSwitch ? trainID : `${name} ${trainName}${TrainNumber}`}
|
||||
{trainIDSwitch ? trainID : `${isThrew ? `★通過列車★` : `${name} ${trainName}${TrainNumber}`} `}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
|
Reference in New Issue
Block a user