@eohjsc/react-native-smart-city 0.2.72 → 0.2.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eohjsc/react-native-smart-city",
3
3
  "title": "React Native Smart Home",
4
- "version": "0.2.72",
4
+ "version": "0.2.73",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -65,8 +65,9 @@ const HorizontalBarChart = memo(({ datas, config }) => {
65
65
  }
66
66
 
67
67
  const formatMoney = (number) => {
68
+ const formatNumber = number.toFixed();
68
69
  return (
69
- parseInt(number, 10)
70
+ parseInt(formatNumber, 10)
70
71
  .toFixed(0)
71
72
  .toString()
72
73
  .replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1.') + 'đ'
@@ -48,6 +48,10 @@ const AddNewGateway = memo(({ route }) => {
48
48
  return true;
49
49
  }, [chipName, imei]);
50
50
 
51
+ const textGateWay = !wifiName
52
+ ? t('please_add_your_phone_number_and_chip_name')
53
+ : t('Please_add_gateway_name');
54
+
51
55
  return (
52
56
  <SafeAreaView style={styles.wrap}>
53
57
  <Text
@@ -65,7 +69,7 @@ const AddNewGateway = memo(({ route }) => {
65
69
  color={Colors.Gray8}
66
70
  style={styles.textNote}
67
71
  >
68
- {t('please_add_your_phone_number_and_chip_name')}
72
+ {textGateWay}
69
73
  </Text>
70
74
 
71
75
  <ScrollView
@@ -305,8 +305,8 @@ const UnitDetail = ({ route }) => {
305
305
  };
306
306
 
307
307
  const onBack = useCallback(() => {
308
- navigate(routeName);
309
- }, [navigate, routeName]);
308
+ navigate(isLavidaSource ? Routes.SmartHomeDashboard : routeName);
309
+ }, [navigate, routeName, isLavidaSource]);
310
310
 
311
311
  const Dashboard = useCallback(() => {
312
312
  navigate(isLavidaSource ? Routes.SmartHomeDashboard : Routes.Dashboard);
@@ -196,7 +196,7 @@
196
196
  "text_poor_level": "Poor",
197
197
  "text_very_poor_level": "Very poor",
198
198
  "text_clo_low_range": "< 0.2 mg/l",
199
- "text_clo_good_range": "< 0.2 - 0.5 mg/l",
199
+ "text_clo_good_range": "0.2 - 0.5 mg/l",
200
200
  "text_clo_high_range": "> 0.5 mg/l",
201
201
  "turbidity_guide": "Water Turbidity Guide",
202
202
  "what_is_turbidity": "What is Water Turbidity?",
@@ -750,6 +750,7 @@
750
750
  "edit_actions_list": "Edit Actions List",
751
751
  "des_edit_actions_list": "Hold and hover to rearrange actions order",
752
752
  "please_add_your_phone_number_and_chip_name": "Please add your phone number and chip name",
753
+ "Please_add_gateway_name" : "Please add gateway name",
753
754
  "phone_number_of_data_sim": "Phone number of data sim",
754
755
  "select_a_sub_unit": "Select a sub-unit that you want to add this gateway",
755
756
  "all_camera": "All Cameras",
@@ -232,7 +232,7 @@
232
232
  "text_poor_level": "Kém",
233
233
  "text_very_poor_level": "Rất kém",
234
234
  "text_clo_low_range": "< 0.2 mg/l",
235
- "text_clo_good_range": "< 0.2 - 0.5 mg/l",
235
+ "text_clo_good_range": "0.2 - 0.5 mg/l",
236
236
  "text_clo_high_range": "> 0.5 mg/l",
237
237
  "turbidity_guide": "Độ đục",
238
238
  "what_is_turbidity": "Độ đục của nước là gì?",
@@ -754,6 +754,7 @@
754
754
  "modbus_fail": "Modbus failrate",
755
755
  "rssi_node": "RSSI Node",
756
756
  "please_add_your_phone_number_and_chip_name": "Vui lòng thêm số điện thoại và tên chip của bạn",
757
+ "Please_add_gateway_name" : "Vui lòng thêm tên gateway",
757
758
  "phone_number_of_data_sim": "Số điện thoại của dữ liệu sim",
758
759
  "select_a_sub_unit": "Lựa chọn một khu vực mà bạn muốn thêm gateway",
759
760
  "all_camera": "All Cameras",