@eohjsc/react-native-smart-city 0.3.18 → 0.3.19
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 +1 -1
- package/src/screens/AddCommon/SelectSubUnit.js +1 -1
- package/src/screens/AddNewDevice/hooks/ConnectDevices.js +1 -1
- package/src/screens/AddNewDevice/index.js +1 -1
- package/src/screens/AddNewGateway/hooks/index.js +1 -1
- package/src/screens/SubUnit/hooks/useManageSubUnit.js +1 -1
- package/src/screens/SyncLGDevice/AddLGDevice.js +1 -1
- package/src/screens/UnitSummary/index.js +1 -1
package/package.json
CHANGED
|
@@ -64,7 +64,7 @@ const AddCommonSelectSubUnit = ({ route }) => {
|
|
|
64
64
|
const fetchDetails = useCallback(async () => {
|
|
65
65
|
const { success, data } = await axiosGet(
|
|
66
66
|
API.UNIT.UNIT_DETAIL(unit_id),
|
|
67
|
-
{
|
|
67
|
+
{},
|
|
68
68
|
true
|
|
69
69
|
);
|
|
70
70
|
if (success) {
|
|
@@ -13,7 +13,7 @@ const useConnectDevices = (new_sensor, station_id, unit_id) => {
|
|
|
13
13
|
const fetchDetails = useCallback(async () => {
|
|
14
14
|
const { success: fetchSuccess, data: unit } = await axiosGet(
|
|
15
15
|
API.UNIT.UNIT_DETAIL(unit_id),
|
|
16
|
-
{
|
|
16
|
+
{},
|
|
17
17
|
true
|
|
18
18
|
);
|
|
19
19
|
const station = unit.stations.find((item) => item.id === station_id);
|
|
@@ -9,7 +9,7 @@ const useConnectGateway = (unit_id) => {
|
|
|
9
9
|
const fetchDetails = useCallback(async () => {
|
|
10
10
|
const { success: fetchSuccess, data: unit } = await axiosGet(
|
|
11
11
|
API.UNIT.UNIT_DETAIL(unit_id),
|
|
12
|
-
{
|
|
12
|
+
{},
|
|
13
13
|
true
|
|
14
14
|
);
|
|
15
15
|
return { fetchSuccess, unit };
|
|
@@ -93,7 +93,7 @@ const UnitSummary = memo(({ route }) => {
|
|
|
93
93
|
const fetchUnitDetail = useCallback(async () => {
|
|
94
94
|
const { success, data } = await axiosGet(
|
|
95
95
|
API.UNIT.UNIT_DETAIL(unit?.id),
|
|
96
|
-
{
|
|
96
|
+
{},
|
|
97
97
|
true
|
|
98
98
|
);
|
|
99
99
|
if (success) {
|