vbea před 2 roky
rodič
revize
32a68c8e35

+ 1 - 1
Strides-APP/app/i18n/locales/en.js

@@ -394,7 +394,7 @@ export default {
     notifyChargingComplete: "Notify me when charging complete",
     notifyLowBalance: "Notify me when credits is low balance",
     notifyPromotionsOffers: "Notify me for promotions and offers",
-    refreshInterval: "Refresh interval",
+    refreshInterval: "Refresh site interval",
     seconds: "s",
     showMyLocations: "Always show my locations",
     moveMyLocations: "Move to my locations when refresh"

+ 1 - 1
Strides-APP/app/i18n/locales/zh-TW.js

@@ -394,7 +394,7 @@
     notifyChargingComplete: "充電完成時通知",
     notifyLowBalance: "餘額低時通知",
     notifyPromotionsOffers: "促銷和優惠訊息",
-    refreshInterval: "刷新間",
+    refreshInterval: "站點刷新間",
     seconds: "秒",
     showMyLocations: "顯示我的位置",
     moveMyLocations: "刷新時移動到我的位置"

+ 1 - 1
Strides-APP/app/i18n/locales/zh.js

@@ -394,7 +394,7 @@ export default {
     notifyChargingComplete: "充电完成时通知",
     notifyLowBalance: "余额低时通知",
     notifyPromotionsOffers: "促销和优惠信息",
-    refreshInterval: "刷新间",
+    refreshInterval: "站点刷新间",
     seconds: "秒",
     showMyLocations: "显示我的位置",
     moveMyLocations: "刷新时移动到我的位置"

+ 10 - 10
Strides-APP/app/pages/Settings.js

@@ -216,17 +216,8 @@ export default class Settings extends Component {
             value={this.state.settings.alwaysLocation}
             onValueChange={v => this.changeSwitch('alwaysLocation', v)}/>
         </Button>
-        <Button
-          style={styles.itemButton}
-          viewStyle={styles.itemView}
-          onClick={() => this.changeSwitch('moveMyLocation', !this.state.settings.moveMyLocation)}>
-          <Text style={styles.buttonText}>{$t('settings.moveMyLocations')}</Text>
-          <Switch
-            value={this.state.settings.moveMyLocation}
-            onValueChange={v => this.changeSwitch('moveMyLocation', v)}/>
-        </Button>
         <View style={styles.menuView}>
-          <Text style={styles.buttonText}>{$t('settings.autoRefreshInterval')}</Text>
+          <Text style={styles.buttonText}>{$t('settings.refreshInterval')}</Text>
           <Dropdown
             style={styles.localeSelect}
             list={this.state.intervalList}
@@ -240,6 +231,15 @@ export default class Settings extends Component {
             onChange={v => this.changeSettings("refreshInterval", v)}
           />
         </View>
+        <Button
+          style={styles.itemButton}
+          viewStyle={styles.itemView}
+          onClick={() => this.changeSwitch('moveMyLocation', !this.state.settings.moveMyLocation)}>
+          <Text style={styles.buttonText}>{$t('settings.moveMyLocations')}</Text>
+          <Switch
+            value={this.state.settings.moveMyLocation}
+            onValueChange={v => this.changeSwitch('moveMyLocation', v)}/>
+        </Button>
       </View>
     );
   }

+ 0 - 3
Strides-APP/package.json

@@ -35,9 +35,6 @@
     "@react-navigation/material-top-tabs": "^5.3.19",
     "@react-navigation/native": "^5.9.4",
     "@react-navigation/stack": "^5.14.4",
-    "appcenter": "^4.4.5",
-    "appcenter-analytics": "^4.4.5",
-    "appcenter-crashes": "^4.4.5",
     "axios": "^0.21.1",
     "react": "17.0.1",
     "react-native": "^0.64.4",