@eohjsc/react-native-smart-city 0.7.3-rc20 → 0.7.3-rc21

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.7.3-rc20",
4
+ "version": "0.7.3-rc21",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -1,27 +1,27 @@
1
- import React, { useState, useCallback, useEffect } from 'react';
2
- import { View, TouchableOpacity, Image } from 'react-native';
3
1
  import { useIsFocused, useNavigation } from '@react-navigation/native';
2
+ import React, { useCallback, useEffect, useState } from 'react';
3
+ import { Image, TouchableOpacity, View } from 'react-native';
4
4
  import { useTranslations } from '../../hooks/Common/useTranslations';
5
5
 
6
- import { Colors, API } from '../../configs';
7
- import { ToastBottomHelper } from '../../utils/Utils';
6
+ import { API, Colors } from '../../configs';
7
+ import useBoolean from '../../hooks/Common/useBoolean';
8
8
  import {
9
- axiosPatch,
10
9
  axiosDelete,
10
+ axiosPatch,
11
11
  createFormData,
12
12
  } from '../../utils/Apis/axios';
13
13
  import Routes from '../../utils/Route';
14
- import useBoolean from '../../hooks/Common/useBoolean';
14
+ import { ToastBottomHelper } from '../../utils/Utils';
15
15
 
16
+ import { IconOutline } from '@ant-design/icons-react-native';
16
17
  import { ImagePicker, Section } from '../../commons';
17
18
  import AlertAction from '../../commons/AlertAction';
18
19
  import _TextInput from '../../commons/Form/TextInput';
19
20
  import Text from '../../commons/Text';
20
21
  import { AccessibilityLabel } from '../../configs/Constants';
21
- import { IconOutline } from '@ant-design/icons-react-native';
22
- import { useEmeragencyContacts } from './hooks/useEmergencyContacts';
23
22
  import useKeyboardAnimated from '../../hooks/Explore/useKeyboardAnimated';
24
23
  import styles from './EditSubUnitStyles';
24
+ import { useEmeragencyContacts } from './hooks/useEmergencyContacts';
25
25
 
26
26
  const EditSubUnit = ({ route }) => {
27
27
  const { unit, station } = route?.params || {};
@@ -118,6 +118,7 @@ const EditSubUnit = ({ route }) => {
118
118
  if (success) {
119
119
  //dispatch(removeSubUnit(station.id));
120
120
  ToastBottomHelper.success(t('text_remove_sub_unit_success'));
121
+ navigation.pop();
121
122
  onBack();
122
123
  } else {
123
124
  ToastBottomHelper.error(t('text_remove_sub_unit_fail'));