rererefactoring
This commit is contained in:
parent
75b5f9b326
commit
06c5102225
17
menu.js
17
menu.js
@ -146,7 +146,7 @@ export default function Menu(props) {
|
|||||||
"https://script.google.com/macros/s/AKfycbyKxch7z7l8e07LXulRHqxjVoIiB13kcgvoToLE-rqlxLmLSKdlmqz0FI1F2EuA7Zfg/exec"
|
"https://script.google.com/macros/s/AKfycbyKxch7z7l8e07LXulRHqxjVoIiB13kcgvoToLE-rqlxLmLSKdlmqz0FI1F2EuA7Zfg/exec"
|
||||||
)
|
)
|
||||||
.then((response) => response.text())
|
.then((response) => response.text())
|
||||||
.then(data => setDelayData(data !== "" ? data.split("^") : null))
|
.then((data) => setDelayData(data !== "" ? data.split("^") : null))
|
||||||
.then(() => LayoutAnimation.easeInEaseOut())
|
.then(() => LayoutAnimation.easeInEaseOut())
|
||||||
.then(() => setGetTime(new Date()))
|
.then(() => setGetTime(new Date()))
|
||||||
.finally(() => setLoadingDelayData(false));
|
.finally(() => setLoadingDelayData(false));
|
||||||
@ -224,18 +224,16 @@ export default function Menu(props) {
|
|||||||
</Text>
|
</Text>
|
||||||
</TextBox>
|
</TextBox>
|
||||||
{currentStation && (
|
{currentStation && (
|
||||||
|
<>
|
||||||
<Sign
|
<Sign
|
||||||
currentStation={currentStation}
|
currentStation={currentStation}
|
||||||
originalStationList={originalStationList}
|
originalStationList={originalStationList}
|
||||||
oP={() => StationBoardAcSR.current?.setModalVisible()}
|
oP={StationBoardAcSR.current?.setModalVisible}
|
||||||
/>
|
/>
|
||||||
|
<LED_vision station={currentStation[0]} />
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
{currentStation && <LED_vision station={currentStation[0]} />}
|
<TouchableOpacity onPress={JRSTraInfoEXAcSR.current?.setModalVisible}>
|
||||||
<TouchableOpacity
|
|
||||||
onPress={() => {
|
|
||||||
JRSTraInfoEXAcSR.current?.setModalVisible();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: "#0099CC",
|
backgroundColor: "#0099CC",
|
||||||
@ -282,7 +280,8 @@ export default function Menu(props) {
|
|||||||
size={30}
|
size={30}
|
||||||
style={{ margin: 5 }}
|
style={{ margin: 5 }}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
LayoutAnimation.easeInEaseOut(), setLoadingDelayData(true);
|
LayoutAnimation.easeInEaseOut();
|
||||||
|
setLoadingDelayData(true);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
Loading…
Reference in New Issue
Block a user