diff --git a/components/駅名表/Sign.js b/components/駅名表/Sign.js
index aa51be5..49d1436 100644
--- a/components/駅名表/Sign.js
+++ b/components/駅名表/Sign.js
@@ -101,9 +101,9 @@ export default function Sign(props) {
const lottieRef = useRef();
const isMatsuyama = currentStation[0].StationNumber == "Y55";
//const isMatsuyama = true;
- if (isMatsuyama) {
- return (
-
+ return (
+
+ {isMatsuyama && (
-
-
- {isCurrentStation ? (
-
-
-
- ) : (
- {
- if (testButtonStatus) {
- const otherData = favoriteStation.filter((d) => {
- const compare = JSON.stringify(d);
- const current = JSON.stringify(currentStation);
- if (compare !== current) {
- return true;
- } else {
- return false;
- }
- });
- AS.setItem("favoriteStation", JSON.stringify(otherData));
- setFavoriteStation(otherData);
- } else {
- let ret = favoriteStation;
- ret.push(currentStation);
- AS.setItem("favoriteStation", JSON.stringify(ret));
- setFavoriteStation(ret);
- }
- setTestButtonStatus(!testButtonStatus);
- }}
- >
-
-
- )}
-
- JR
-
-
-
+
+ {isCurrentStation ? (
+
+
-
-
- );
- } else {
- return (
-
-
-
- {isCurrentStation ? (
-
-
-
- ) : (
- {
- if (testButtonStatus) {
- const otherData = favoriteStation.filter((d) => {
- const compare = JSON.stringify(d);
- const current = JSON.stringify(currentStation);
- if (compare !== current) {
- return true;
- } else {
- return false;
- }
- });
- AS.setItem("favoriteStation", JSON.stringify(otherData));
- setFavoriteStation(otherData);
- } else {
- let ret = favoriteStation;
- ret.push(currentStation);
- AS.setItem("favoriteStation", JSON.stringify(ret));
- setFavoriteStation(ret);
- }
- setTestButtonStatus(!testButtonStatus);
- }}
- >
-
-
- )}
-
- JR
-
-
-
+ ) : (
+ {
+ if (testButtonStatus) {
+ const otherData = favoriteStation.filter((d) => {
+ const compare = JSON.stringify(d);
+ const current = JSON.stringify(currentStation);
+ if (compare !== current) {
+ return true;
+ } else {
+ return false;
+ }
+ });
+ AS.setItem("favoriteStation", JSON.stringify(otherData));
+ setFavoriteStation(otherData);
+ } else {
+ let ret = favoriteStation;
+ ret.push(currentStation);
+ AS.setItem("favoriteStation", JSON.stringify(ret));
+ setFavoriteStation(ret);
+ }
+ setTestButtonStatus(!testButtonStatus);
+ }}
+ >
+
-
-
- );
- }
+
+ )}
+
+ JR
+
+
+
+
+
+ );
}
const LottieDelayView = ({