@eohjsc/react-native-smart-city 0.7.3-rc12 → 0.7.3-rc14
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/commons/ActionGroup/NumberUpDownActionTemplate.js +3 -3
- package/src/commons/ActionGroup/OnOffSmartLock/AutoLock/ButtonWrapper.js +3 -3
- package/src/commons/ActionGroup/OnOffSmartLock/PasscodeList/index.js +3 -3
- package/src/commons/ActionGroup/OnOffSmartLock/SetupGeneratePasscode/ButtonWrapper.js +2 -2
- package/src/commons/ActionGroup/OnOffTemplate/OnOffSimpleTemplate.js +2 -2
- package/src/commons/ActionGroup/OptionsDropdownActionTemplate.js +2 -2
- package/src/commons/ActionGroup/SmartTiviActionTemplate/SmartTiviActionTemplate.js +2 -2
- package/src/commons/ActionGroup/SmartTiviActionTemplate/component/CircleButton.js +5 -5
- package/src/commons/ActionGroup/SmartTiviActionTemplate/component/ControlPlay.js +5 -5
- package/src/commons/ActionGroup/TerminalBoxTemplate.js +2 -2
- package/src/commons/ActionGroup/TextBoxTemplate.js +2 -2
- package/src/commons/ActionGroup/TimerActionTemplate.js +6 -3
- package/src/commons/ActionGroup/TwoButtonTemplate/index.js +2 -2
- package/src/commons/BackDefault/index.js +2 -2
- package/src/commons/ButtonPopup/index.js +2 -2
- package/src/commons/DateTimeRangeChange/DateTimeButton.js +2 -2
- package/src/commons/Device/ConnectedViewHeader.js +2 -2
- package/src/commons/Device/Emergency/EmergencyDetail.js +3 -3
- package/src/commons/Device/FlatListItems.js +3 -3
- package/src/commons/Device/Hanet/ItemHanetDevice.js +3 -3
- package/src/commons/Device/ItemAddNew/index.js +2 -2
- package/src/commons/Device/ItemDevice.js +2 -2
- package/src/commons/Device/SonosSpeaker/index.js +3 -3
- package/src/commons/Device/WaterPurifierStatus/AlertStatusMachine.js +2 -2
- package/src/commons/Device/WaterQualitySensor/QualityIndicatorsItem.js +6 -2
- package/src/commons/DisplayChecking/index.js +2 -2
- package/src/commons/EmergencyButton/AlertSendConfirm.js +2 -2
- package/src/commons/FieldTemplate/ChooseUserField/index.js +2 -2
- package/src/commons/Header/HeaderCustom.js +2 -2
- package/src/commons/HeaderAni/index.js +2 -2
- package/src/commons/NavBar/index.js +2 -2
- package/src/commons/OneTapTemplate/NumberUpDownActionTemplate.js +3 -3
- package/src/commons/SearchLocation/index.js +3 -3
- package/src/commons/SelectActionCard/index.js +2 -2
- package/src/commons/SelectSubUnit/index.js +6 -2
- package/src/commons/Sharing/BtnRemoveMember.js +2 -2
- package/src/commons/Sharing/StationDevicePermissions.js +2 -2
- package/src/commons/SubUnit/DeviceTemplate/ConfigAndEvaluation/ConfigAndEvaluation.js +2 -2
- package/src/commons/SubUnit/DeviceTemplate/ConfigValue/ConfigValue.js +2 -2
- package/src/commons/SubUnit/DeviceTemplate/EvaluationOverConfig/EvaluationOverConfig.js +2 -2
- package/src/commons/SubUnit/OneTap/ItemOneTap.js +2 -2
- package/src/commons/Unit/HeaderUnit/index.js +3 -3
- package/src/commons/Unit/SharedUnit.js +7 -7
- package/src/navigations/EmergencyContactsStack.js +2 -2
- package/src/navigations/UnitStack.js +2 -2
- package/src/screens/ActivityLog/index.js +2 -2
- package/src/screens/AddLocationMaps/index.js +3 -3
- package/src/screens/AddNewGateway/RenameNewDevices.js +2 -2
- package/src/screens/Automate/AddNewAction/NewActionWrapper.js +2 -2
- package/src/screens/Automate/AddNewAction/SetupConfigCondition.js +7 -2
- package/src/screens/Automate/ScriptDetail/Components/AddActionScript.js +2 -2
- package/src/screens/Automate/ScriptDetail/index.js +3 -3
- package/src/screens/Automate/Styles/indexStyles.js +1 -1
- package/src/screens/Automate/index.js +36 -33
- package/src/screens/Device/EditDevice/index.js +2 -2
- package/src/screens/Device/__test__/detail.test.js +3 -3
- package/src/screens/Device/detail.js +7 -7
- package/src/screens/Drawer/index.js +3 -3
- package/src/screens/EmergencyContacts/EmergencyContactsList.js +8 -4
- package/src/screens/EmergencyContacts/EmergencyContactsSelectContacts.js +3 -3
- package/src/screens/EmergencySetting/components/DropDownItem.js +2 -2
- package/src/screens/GuestInfo/components/RowGuestInfo.js +2 -2
- package/src/screens/GuestInfo/index.js +2 -2
- package/src/screens/HanetCamera/ManageAccess.js +3 -3
- package/src/screens/HanetCamera/MemberInfo.js +2 -2
- package/src/screens/HanetCamera/components/RequestFaceIDPopup.js +2 -2
- package/src/screens/ManageAccess/index.js +3 -3
- package/src/screens/Notification/index.js +3 -3
- package/src/screens/ScanChipQR/components/QRScan/index.js +3 -3
- package/src/screens/SelectUnit/index.js +2 -2
- package/src/screens/SharedUnit/TabHeader.js +2 -2
- package/src/screens/Sharing/Components/EndDevice.js +3 -3
- package/src/screens/Sharing/UnitMemberList.js +2 -2
- package/src/screens/SmartAccount/SuccessfullyConnected/index.js +2 -2
- package/src/screens/SmartIr/__test__/GroupButtonByType.test.js +3 -2
- package/src/screens/SmartIr/components/GroupButtonByType/GroupButtonByType.js +2 -2
- package/src/screens/SmartIr/components/SelectBrand.js +2 -2
- package/src/screens/SubUnit/EditSubUnit.js +2 -2
- package/src/screens/SubUnit/ManageSubUnit.js +3 -3
- package/src/screens/Unit/SelectAddToFavorites.js +2 -2
- package/src/screens/Unit/SelectAddress.js +3 -3
- package/src/screens/Unit/components/AutomateScript/index.js +2 -2
- package/src/screens/Unit/components/ButtonWrapper/index.js +3 -3
- package/src/screens/Unit/components/Header/index.js +2 -2
- package/src/screens/Unit/components/SharedUnit/index.js +5 -5
- package/src/screens/UnitSummary/components/AirQuality/index.js +6 -11
- package/src/screens/UnitSummary/components/WaterQuality/Item/index.js +2 -2
- package/src/screens/UnitSummary/index.js +3 -3
|
@@ -2,7 +2,7 @@ import React, { memo, useState, useCallback } from 'react';
|
|
|
2
2
|
import { View, TouchableOpacity } from 'react-native';
|
|
3
3
|
import { useTranslations } from '../../../hooks/Common/useTranslations';
|
|
4
4
|
import { HeaderCustom } from '../../../commons/Header';
|
|
5
|
-
import
|
|
5
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
6
6
|
import { Colors } from '../../../configs';
|
|
7
7
|
import Text from '../../../commons/Text';
|
|
8
8
|
import { useRoute } from '@react-navigation/native';
|
|
@@ -92,7 +92,7 @@ const EditDevice = memo(() => {
|
|
|
92
92
|
<Text type="Body" Reugular color={Colors.Grey7}>
|
|
93
93
|
{sensorName}
|
|
94
94
|
</Text>
|
|
95
|
-
<
|
|
95
|
+
<IconOutline
|
|
96
96
|
name="right"
|
|
97
97
|
size={18}
|
|
98
98
|
color={Colors.Gray7}
|
|
@@ -3,8 +3,6 @@ import MockAdapter from 'axios-mock-adapter';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Alert, ScrollView } from 'react-native';
|
|
5
5
|
import { act, create } from 'react-test-renderer';
|
|
6
|
-
|
|
7
|
-
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
8
6
|
import { AlertAction, ButtonPopup, MenuActionMore } from '../../../commons';
|
|
9
7
|
import CurrentRainSensor from '../../../commons/Device/RainningSensor/CurrentRainSensor';
|
|
10
8
|
import { AlertSendConfirm } from '../../../commons/EmergencyButton/AlertSendConfirm';
|
|
@@ -19,6 +17,7 @@ import api from '../../../utils/Apis/axios';
|
|
|
19
17
|
import { getTranslate } from '../../../utils/I18n';
|
|
20
18
|
import Routes from '../../../utils/Route';
|
|
21
19
|
import DeviceDetail from '../detail';
|
|
20
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
22
21
|
|
|
23
22
|
const mock = new MockAdapter(api.axiosInstance);
|
|
24
23
|
|
|
@@ -352,7 +351,8 @@ describe('test DeviceDetail', () => {
|
|
|
352
351
|
const buttonPopupIcon = instance.find(
|
|
353
352
|
(el) =>
|
|
354
353
|
el.props.accessibilityLabel ===
|
|
355
|
-
AccessibilityLabel.BUTTON_POPUP_RESOLVED_ICON &&
|
|
354
|
+
AccessibilityLabel.BUTTON_POPUP_RESOLVED_ICON &&
|
|
355
|
+
el.type === IconOutline
|
|
356
356
|
);
|
|
357
357
|
expect(buttonPopupTitle.props.children).toEqual([
|
|
358
358
|
'Unit name',
|
|
@@ -8,7 +8,7 @@ import React, {
|
|
|
8
8
|
} from 'react';
|
|
9
9
|
import { View, TouchableOpacity, Platform } from 'react-native';
|
|
10
10
|
import { useNavigation, useFocusEffect } from '@react-navigation/native';
|
|
11
|
-
import
|
|
11
|
+
import { IconFill, IconOutline } from '@ant-design/icons-react-native';
|
|
12
12
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
13
13
|
import moment from 'moment';
|
|
14
14
|
|
|
@@ -685,9 +685,9 @@ const DeviceDetail = ({ route }) => {
|
|
|
685
685
|
>
|
|
686
686
|
<View style={styles.buttonStar}>
|
|
687
687
|
{isFavorite ? (
|
|
688
|
-
<
|
|
688
|
+
<IconFill name="star" size={25} color={Colors.Yellow6} />
|
|
689
689
|
) : (
|
|
690
|
-
<
|
|
690
|
+
<IconOutline name="star" size={25} />
|
|
691
691
|
)}
|
|
692
692
|
</View>
|
|
693
693
|
</TouchableOpacity>
|
|
@@ -695,7 +695,7 @@ const DeviceDetail = ({ route }) => {
|
|
|
695
695
|
{isShowSetupEmergencyContact && (
|
|
696
696
|
<TouchableOpacity onPress={onPressSetting}>
|
|
697
697
|
<View style={styles.button}>
|
|
698
|
-
<
|
|
698
|
+
<IconOutline name="setting" size={25} color={Colors.Black} />
|
|
699
699
|
</View>
|
|
700
700
|
</TouchableOpacity>
|
|
701
701
|
)}
|
|
@@ -792,7 +792,7 @@ const DeviceDetail = ({ route }) => {
|
|
|
792
792
|
<BottomButtonView
|
|
793
793
|
style={styles.bottomButtonEmergencyContact}
|
|
794
794
|
mainIcon={
|
|
795
|
-
<
|
|
795
|
+
<IconOutline name="plus" size={16} color={Colors.Primary} />
|
|
796
796
|
}
|
|
797
797
|
mainTitle={t('setup_my_emergency_contact')}
|
|
798
798
|
onPressMain={onSetupContacts}
|
|
@@ -827,7 +827,7 @@ const DeviceDetail = ({ route }) => {
|
|
|
827
827
|
{isShowEmergencyResolve && !isEmergencyPopupScreen && (
|
|
828
828
|
<BottomButtonView
|
|
829
829
|
style={styles.bottomButtonEmergencyResolve}
|
|
830
|
-
mainIcon={<
|
|
830
|
+
mainIcon={<IconOutline name="tool" size={15} color={Colors.Gray6} />}
|
|
831
831
|
mainTitle={t('resolve_situation')}
|
|
832
832
|
onPressMain={onPressResolveSituationConfirm}
|
|
833
833
|
topComponent={
|
|
@@ -867,7 +867,7 @@ const DeviceDetail = ({ route }) => {
|
|
|
867
867
|
>
|
|
868
868
|
{unit?.name} - {sensor?.station?.name}
|
|
869
869
|
</Text>
|
|
870
|
-
<
|
|
870
|
+
<IconOutline
|
|
871
871
|
accessibilityLabel={AccessibilityLabel.BUTTON_POPUP_RESOLVED_ICON}
|
|
872
872
|
name="check-circle"
|
|
873
873
|
size={42}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
2
2
|
import React, { useCallback, useContext } from 'react';
|
|
3
3
|
import {
|
|
4
4
|
Image,
|
|
@@ -59,7 +59,7 @@ const DrawerContainer = () => {
|
|
|
59
59
|
style={styles.avatar}
|
|
60
60
|
accessibilityLabel={AccessibilityLabel.SIDE_MENU_AVATAR_USER}
|
|
61
61
|
>
|
|
62
|
-
<
|
|
62
|
+
<IconOutline name={'user'} size={27} />
|
|
63
63
|
</View>
|
|
64
64
|
)}
|
|
65
65
|
<View style={styles.textContainer}>
|
|
@@ -116,7 +116,7 @@ export const Row = ({
|
|
|
116
116
|
]}
|
|
117
117
|
accessibilityLabel={accessibilityLabel}
|
|
118
118
|
>
|
|
119
|
-
<
|
|
119
|
+
<IconOutline name={image} size={24} />
|
|
120
120
|
|
|
121
121
|
<View style={styles.wrapText}>
|
|
122
122
|
<Text style={[styles.text]}>{name}</Text>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect } from 'react';
|
|
2
2
|
import { StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { useIsFocused, useNavigation } from '@react-navigation/native';
|
|
5
5
|
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
6
6
|
import { AlertAction, MenuActionList, Section } from '../../commons';
|
|
@@ -99,7 +99,7 @@ export const EmergencyContactsList = ({ route }) => {
|
|
|
99
99
|
: 'disable'
|
|
100
100
|
}
|
|
101
101
|
leftIcon={
|
|
102
|
-
<
|
|
102
|
+
<IconOutline name={'plus'} size={20} color={Colors.White} />
|
|
103
103
|
}
|
|
104
104
|
text={t('add_new')}
|
|
105
105
|
subtext={t('emergency_max_contacts', {
|
|
@@ -113,7 +113,7 @@ export const EmergencyContactsList = ({ route }) => {
|
|
|
113
113
|
key={contact.id}
|
|
114
114
|
index={index}
|
|
115
115
|
leftIcon={
|
|
116
|
-
<
|
|
116
|
+
<IconOutline name={'user'} size={20} color={Colors.White} />
|
|
117
117
|
}
|
|
118
118
|
text={contact.name}
|
|
119
119
|
subtext={contact.phone_number}
|
|
@@ -122,7 +122,11 @@ export const EmergencyContactsList = ({ route }) => {
|
|
|
122
122
|
style={styles.buttonRemove}
|
|
123
123
|
onPress={onPressRemoveContact(contact)}
|
|
124
124
|
>
|
|
125
|
-
<
|
|
125
|
+
<IconOutline
|
|
126
|
+
name={'minus'}
|
|
127
|
+
size={20}
|
|
128
|
+
color={Colors.Gray8}
|
|
129
|
+
/>
|
|
126
130
|
</TouchableOpacity>
|
|
127
131
|
}
|
|
128
132
|
/>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { useNavigation } from '@react-navigation/native';
|
|
5
5
|
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
6
6
|
import { Section, ViewButtonBottom } from '../../commons';
|
|
@@ -81,7 +81,7 @@ export const EmergencyContactsSelectContacts = ({ route }) => {
|
|
|
81
81
|
}
|
|
82
82
|
index={index}
|
|
83
83
|
leftIcon={
|
|
84
|
-
<
|
|
84
|
+
<IconOutline name={'user'} size={20} color={Colors.White} />
|
|
85
85
|
}
|
|
86
86
|
text={contact.name}
|
|
87
87
|
subtext={contact.phone_number}
|
|
@@ -91,7 +91,7 @@ export const EmergencyContactsSelectContacts = ({ route }) => {
|
|
|
91
91
|
{currentContacts.some(
|
|
92
92
|
(item) => item?.name === contact?.name
|
|
93
93
|
) && (
|
|
94
|
-
<
|
|
94
|
+
<IconOutline
|
|
95
95
|
name={'check-circle'}
|
|
96
96
|
size={20}
|
|
97
97
|
color={Colors.Primary}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useState } from 'react';
|
|
2
2
|
import { View, TouchableOpacity } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
|
|
5
5
|
import Text from '../../../commons/Text';
|
|
6
6
|
import styles from '../styles/DropDownItem';
|
|
@@ -29,7 +29,7 @@ const DropDownItem = ({ label, data, onSelectItem, isOpen, onOpen, index }) => {
|
|
|
29
29
|
<View style={styles.dropDownContainer}>
|
|
30
30
|
<TouchableOpacity style={styles.dropDownStyle} onPress={handleOnOpen}>
|
|
31
31
|
<Text>{selecteValue?.label}</Text>
|
|
32
|
-
<
|
|
32
|
+
<IconOutline name="caret-down" size={18} color={Colors.Gray8} />
|
|
33
33
|
</TouchableOpacity>
|
|
34
34
|
|
|
35
35
|
{isOpen && (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, TouchableOpacity } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import Text from '../../../commons/Text';
|
|
5
5
|
import styles from '../styles/indexStyles';
|
|
6
6
|
|
|
@@ -19,7 +19,7 @@ const RowGuestInfo = ({
|
|
|
19
19
|
<View style={styles.rowRight}>
|
|
20
20
|
<Text type="Body">{textRight}</Text>
|
|
21
21
|
{rightArrow && (
|
|
22
|
-
<
|
|
22
|
+
<IconOutline name="right" size={20} style={styles.icon} />
|
|
23
23
|
)}
|
|
24
24
|
</View>
|
|
25
25
|
</View>
|
|
@@ -7,7 +7,7 @@ import RowGuestInfo from './components/RowGuestInfo';
|
|
|
7
7
|
import HeaderGuestInfo from './components/HeaderGuestInfo';
|
|
8
8
|
import AccessScheduleSheet from './components/AccessScheduleSheet';
|
|
9
9
|
import { CircleView } from '../../commons/CircleView';
|
|
10
|
-
import
|
|
10
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
11
11
|
import Text from '../../commons/Text';
|
|
12
12
|
import { useBoolean } from '../../hooks/Common';
|
|
13
13
|
import { axiosGet, axiosPut } from '../../utils/Apis/axios';
|
|
@@ -113,7 +113,7 @@ const GuestInfo = ({ route }) => {
|
|
|
113
113
|
/>
|
|
114
114
|
) : (
|
|
115
115
|
<CircleView size={88} center style={styles.avatar}>
|
|
116
|
-
<
|
|
116
|
+
<IconOutline name="user" size={44} color={Colors.Pink1} />
|
|
117
117
|
</CircleView>
|
|
118
118
|
)}
|
|
119
119
|
<Text type="H3" bold>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from 'react';
|
|
2
2
|
import { View, TouchableOpacity, Image, FlatList } from 'react-native';
|
|
3
3
|
import { useNavigation } from '@react-navigation/native';
|
|
4
|
-
import
|
|
4
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
5
5
|
import { HeaderCustom } from '../../commons/Header';
|
|
6
6
|
import Text from '../../commons/Text';
|
|
7
7
|
import RequestFaceIDPopup from './components/RequestFaceIDPopup';
|
|
@@ -74,7 +74,7 @@ const HanetManageAccess = ({ route }) => {
|
|
|
74
74
|
{' '}
|
|
75
75
|
{item.name}
|
|
76
76
|
</Text>
|
|
77
|
-
<
|
|
77
|
+
<IconOutline name="right" size={20} color={Colors.Gray6} />
|
|
78
78
|
</TouchableOpacity>
|
|
79
79
|
);
|
|
80
80
|
},
|
|
@@ -89,7 +89,7 @@ const HanetManageAccess = ({ route }) => {
|
|
|
89
89
|
onPress={setShowAddMemberModal}
|
|
90
90
|
accessibilityLabel={AccessibilityLabel.HANET_MANAGE_ACCESS_ADD_BUTTON}
|
|
91
91
|
>
|
|
92
|
-
<
|
|
92
|
+
<IconOutline name={'plus'} size={27} color={Colors.Black} />
|
|
93
93
|
</TouchableOpacity>
|
|
94
94
|
</View>
|
|
95
95
|
),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { View, TouchableOpacity, Image } from 'react-native';
|
|
3
3
|
import { useNavigation } from '@react-navigation/native';
|
|
4
|
-
import
|
|
4
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
5
5
|
|
|
6
6
|
import { HeaderCustom } from '../../commons/Header';
|
|
7
7
|
import { AlertAction, FullLoading } from '../../commons';
|
|
@@ -173,7 +173,7 @@ const HanetMemberInfo = ({ route }) => {
|
|
|
173
173
|
onPress={setShowSetFaceIDModal}
|
|
174
174
|
style={[styles.row, !!error && { borderBottomColor: Colors.Red6 }]}
|
|
175
175
|
>
|
|
176
|
-
<
|
|
176
|
+
<IconOutline name="camera" size={27} color={Colors.Primary} />
|
|
177
177
|
<Text
|
|
178
178
|
type="Body"
|
|
179
179
|
bold
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
3
|
import ImagePicker from 'react-native-image-crop-picker';
|
|
4
|
-
import
|
|
4
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
5
5
|
import Text from '../../../commons/Text';
|
|
6
6
|
import BottomSheet from '../../../commons/BottomSheet';
|
|
7
7
|
import { Colors } from '../../../configs';
|
|
@@ -19,7 +19,7 @@ const RequestFaceIDPopup = ({
|
|
|
19
19
|
const t = useTranslations();
|
|
20
20
|
const options = [
|
|
21
21
|
{
|
|
22
|
-
icon: <
|
|
22
|
+
icon: <IconOutline name="camera" color={Colors.Gray9} size={27} />,
|
|
23
23
|
text: t('capture_image'),
|
|
24
24
|
onChoose: () => {
|
|
25
25
|
setHide();
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import { useNavigation, useIsFocused } from '@react-navigation/native';
|
|
10
10
|
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
11
11
|
import { HeaderCustom } from '../../commons/Header';
|
|
12
|
-
import
|
|
12
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
13
13
|
import styles from './styles/ManageAccessStyles';
|
|
14
14
|
import { Colors } from '../../configs';
|
|
15
15
|
import Text from '../../commons/Text';
|
|
@@ -75,7 +75,7 @@ const ManageAccessScreen = memo(({ route }) => {
|
|
|
75
75
|
// accessibilityLabel={AccessibilityLabel.SIDE_MENU_AVATAR_USER}
|
|
76
76
|
/>
|
|
77
77
|
) : (
|
|
78
|
-
<
|
|
78
|
+
<IconOutline
|
|
79
79
|
name="user"
|
|
80
80
|
size={20}
|
|
81
81
|
color={Colors.White}
|
|
@@ -90,7 +90,7 @@ const ManageAccessScreen = memo(({ route }) => {
|
|
|
90
90
|
subtext={item.schedule}
|
|
91
91
|
onPress={() => goToGuestInfo(item.id)}
|
|
92
92
|
rightComponent={
|
|
93
|
-
<
|
|
93
|
+
<IconOutline
|
|
94
94
|
name="right"
|
|
95
95
|
size={20}
|
|
96
96
|
color={Colors.Gray6}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo, useMemo, useState, useCallback, useEffect } from 'react';
|
|
2
2
|
import { View, TouchableOpacity } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { useFocusEffect } from '@react-navigation/native';
|
|
5
5
|
|
|
6
6
|
import styles from './styles/indexStyles';
|
|
@@ -33,7 +33,7 @@ const Notification = memo(() => {
|
|
|
33
33
|
notImplemented(t);
|
|
34
34
|
}}
|
|
35
35
|
>
|
|
36
|
-
<
|
|
36
|
+
<IconOutline name={'plus'} size={27} color={Colors.Black} />
|
|
37
37
|
</TouchableOpacity>
|
|
38
38
|
|
|
39
39
|
<TouchableOpacity
|
|
@@ -41,7 +41,7 @@ const Notification = memo(() => {
|
|
|
41
41
|
notImplemented(t);
|
|
42
42
|
}}
|
|
43
43
|
>
|
|
44
|
-
<
|
|
44
|
+
<IconOutline name={'search'} size={27} color={Colors.Black} />
|
|
45
45
|
</TouchableOpacity>
|
|
46
46
|
</View>
|
|
47
47
|
),
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
Dimensions,
|
|
8
8
|
TouchableOpacity,
|
|
9
9
|
} from 'react-native';
|
|
10
|
-
import
|
|
10
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
11
11
|
import { RNCamera } from 'react-native-camera';
|
|
12
12
|
import { getStatusBarHeight } from 'react-native-iphone-x-helper';
|
|
13
13
|
import { useTranslations } from '../../../../hooks/Common/useTranslations';
|
|
@@ -36,7 +36,7 @@ const VerifyingQRCode = memo(() => {
|
|
|
36
36
|
<View style={styles.maskOuter}>
|
|
37
37
|
<TouchableOpacity style={[styles.viewVerifying, styles.buttonShadow]}>
|
|
38
38
|
<Loading
|
|
39
|
-
icon={<
|
|
39
|
+
icon={<IconOutline name={'sync'} color={Colors.Green6} size={16} />}
|
|
40
40
|
/>
|
|
41
41
|
<Text type={'Body'} style={styles.text}>
|
|
42
42
|
{t('verify_qr_code')}
|
|
@@ -117,7 +117,7 @@ const QRScan = ({ isScanReady = true, onScan }) => {
|
|
|
117
117
|
borderColor={Colors.Gray4}
|
|
118
118
|
style={styles.buttonClose}
|
|
119
119
|
>
|
|
120
|
-
<
|
|
120
|
+
<IconOutline name={'close'} size={24} co />
|
|
121
121
|
</CircleButton>
|
|
122
122
|
{loading && <VerifyingQRCode />}
|
|
123
123
|
</View>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo, useState, useCallback, useEffect } from 'react';
|
|
2
2
|
import { View, TouchableOpacity, FlatList } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import WrapHeaderScrollable from '../../commons/Sharing/WrapHeaderScrollable';
|
|
5
5
|
import { API, Colors } from '../../configs';
|
|
6
6
|
import Text from '../../commons/Text';
|
|
@@ -132,7 +132,7 @@ const SelectUnit = () => {
|
|
|
132
132
|
accessibilityLabel={AccessibilityLabel.ICON_CLOSE}
|
|
133
133
|
>
|
|
134
134
|
<View style={styles.buttonClose}>
|
|
135
|
-
<
|
|
135
|
+
<IconOutline name={'close'} size={24} color={Colors.Black} />
|
|
136
136
|
</View>
|
|
137
137
|
</TouchableOpacity>
|
|
138
138
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { View, TouchableOpacity } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
5
5
|
|
|
6
6
|
import Text from '../../commons/Text';
|
|
@@ -54,7 +54,7 @@ const TabHeader = ({ current, getCurrentTab, showModal, textFilter }) => {
|
|
|
54
54
|
<Text style={styles.sortBy}>
|
|
55
55
|
{t('sort_by') + ': '} {textFilter}
|
|
56
56
|
</Text>
|
|
57
|
-
<
|
|
57
|
+
<IconOutline name="arrowdown" size={10} />
|
|
58
58
|
</TouchableOpacity>
|
|
59
59
|
</View>
|
|
60
60
|
</View>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo, useMemo, useState } from 'react';
|
|
2
2
|
import { View, Text, TouchableOpacity } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
4
|
import { Colors } from '../../../configs';
|
|
5
5
|
import styles from './Styles/DeviceItemStyles';
|
|
6
6
|
import { AccessibilityLabel } from '../../../configs/Constants';
|
|
@@ -71,11 +71,11 @@ const EndDevice = ({
|
|
|
71
71
|
{name}
|
|
72
72
|
</Text>
|
|
73
73
|
{checked && (
|
|
74
|
-
<
|
|
74
|
+
<IconOutline name={'check'} color={Colors.Primary} size={20} />
|
|
75
75
|
)}
|
|
76
76
|
|
|
77
77
|
{dataConfig.length > 0 && (
|
|
78
|
-
<
|
|
78
|
+
<IconOutline
|
|
79
79
|
onPress={() => toggleExpandEndDevice()}
|
|
80
80
|
name={isItemExpanded ? 'up' : 'down'}
|
|
81
81
|
size={20}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useEffect } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
3
3
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
4
4
|
import { useNavigation, useIsFocused } from '@react-navigation/native';
|
|
5
5
|
import { StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
@@ -83,7 +83,7 @@ const UnitMemberList = ({ route }) => {
|
|
|
83
83
|
style={styles.rightHeader}
|
|
84
84
|
>
|
|
85
85
|
{isOwner ? (
|
|
86
|
-
<
|
|
86
|
+
<IconOutline name={'plus'} size={27} color={Colors.Black} />
|
|
87
87
|
) : (
|
|
88
88
|
<MaterialIcons name={'more-vert'} size={27} color={Colors.Black} />
|
|
89
89
|
)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo, useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { View, ScrollView, ActivityIndicator } from 'react-native';
|
|
3
3
|
import { useNavigation, CommonActions } from '@react-navigation/native';
|
|
4
|
-
import
|
|
4
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
5
5
|
|
|
6
6
|
import _TextInput from '../../../commons/Form/TextInput';
|
|
7
7
|
import Text from '../../../commons/Text';
|
|
@@ -134,7 +134,7 @@ const SuccessfullyConnected = memo(({ route }) => {
|
|
|
134
134
|
<View style={styles.wrap}>
|
|
135
135
|
<ScrollView>
|
|
136
136
|
<View style={styles.body}>
|
|
137
|
-
<
|
|
137
|
+
<IconOutline name="check-circle" size={28} color={Colors.Green6} />
|
|
138
138
|
<Text bold style={styles.connectingText}>
|
|
139
139
|
{t('successfully_connected')}
|
|
140
140
|
</Text>
|
|
@@ -9,8 +9,9 @@ import { AccessibilityLabel } from '../../../configs/Constants';
|
|
|
9
9
|
import TextInput from '../../../commons/Form/TextInput';
|
|
10
10
|
import { ModalCustom } from '../../../commons/Modal';
|
|
11
11
|
import { TouchableOpacity } from 'react-native';
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
14
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
14
15
|
|
|
15
16
|
const wrapComponent = (route) => (
|
|
16
17
|
<SCProvider initState={mockSCStore({})}>
|
|
@@ -133,7 +134,7 @@ describe('Test GroupButtonByType', () => {
|
|
|
133
134
|
const icon = instance.find(
|
|
134
135
|
(el) =>
|
|
135
136
|
el.props.accessibilityLabel ===
|
|
136
|
-
AccessibilityLabel.ICON_OUTLINE_TYPE_RELOAD && el.type ===
|
|
137
|
+
AccessibilityLabel.ICON_OUTLINE_TYPE_RELOAD && el.type === IconOutline
|
|
137
138
|
);
|
|
138
139
|
await act(async () => {
|
|
139
140
|
await touch.props.onPress();
|
|
@@ -5,7 +5,7 @@ import { useTranslations } from '../../../../hooks/Common/useTranslations';
|
|
|
5
5
|
import SmartTiviActionTemplate from '../../../../commons/ActionGroup/SmartTiviActionTemplate/SmartTiviActionTemplate';
|
|
6
6
|
import Text from '../../../../commons/Text';
|
|
7
7
|
import { ModalCustom } from '../../../../commons/Modal';
|
|
8
|
-
import
|
|
8
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
9
9
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
10
10
|
import { Colors } from '../../../../configs';
|
|
11
11
|
import TextInput from '../../../../commons/Form/TextInput';
|
|
@@ -58,7 +58,7 @@ const GroupButtonByType = memo(({ route }) => {
|
|
|
58
58
|
style={[styles.headerButton]}
|
|
59
59
|
accessibilityLabel={AccessibilityLabel.HEADER_BUTTON_TYPE_RELOAD}
|
|
60
60
|
>
|
|
61
|
-
<
|
|
61
|
+
<IconOutline
|
|
62
62
|
name={'reload1'}
|
|
63
63
|
size={27}
|
|
64
64
|
color={Colors.Black}
|
|
@@ -5,7 +5,7 @@ import { HeaderCustom } from '../../../commons/Header';
|
|
|
5
5
|
import { useTranslations } from '../../../hooks/Common/useTranslations';
|
|
6
6
|
import Routes from '../../../utils/Route';
|
|
7
7
|
import { RowItem } from '../../../commons/RowItem';
|
|
8
|
-
import
|
|
8
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
9
9
|
import { Colors } from '../../../configs';
|
|
10
10
|
|
|
11
11
|
import styles from './SelectBrandStyles';
|
|
@@ -47,7 +47,7 @@ const SelectDeviceType = memo(({ route }) => {
|
|
|
47
47
|
key={index.toString()}
|
|
48
48
|
isShowSubText={false}
|
|
49
49
|
rightComponent={
|
|
50
|
-
<
|
|
50
|
+
<IconOutline name="right" size={20} color={Colors.Gray7} />
|
|
51
51
|
}
|
|
52
52
|
/>
|
|
53
53
|
);
|
|
@@ -18,7 +18,7 @@ import AlertAction from '../../commons/AlertAction';
|
|
|
18
18
|
import _TextInput from '../../commons/Form/TextInput';
|
|
19
19
|
import Text from '../../commons/Text';
|
|
20
20
|
import { AccessibilityLabel } from '../../configs/Constants';
|
|
21
|
-
import
|
|
21
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
22
22
|
import { useEmeragencyContacts } from './hooks/useEmergencyContacts';
|
|
23
23
|
import useKeyboardAnimated from '../../hooks/Explore/useKeyboardAnimated';
|
|
24
24
|
import styles from './EditSubUnitStyles';
|
|
@@ -207,7 +207,7 @@ const EditSubUnit = ({ route }) => {
|
|
|
207
207
|
<Text type={'H4'} color={Colors.Gray9}>
|
|
208
208
|
{t('emergency_contacts')}
|
|
209
209
|
</Text>
|
|
210
|
-
<
|
|
210
|
+
<IconOutline name={'right'} size={20} color={Colors.Gray8} />
|
|
211
211
|
</TouchableOpacity>
|
|
212
212
|
<Text
|
|
213
213
|
type={'Body'}
|
|
@@ -14,7 +14,7 @@ import WrapHeaderScrollable from '../../commons/Sharing/WrapHeaderScrollable';
|
|
|
14
14
|
import Text from '../../commons/Text';
|
|
15
15
|
|
|
16
16
|
import styles from './ManageSubUnitStyles';
|
|
17
|
-
import
|
|
17
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
18
18
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
19
19
|
import Routes from '../../utils/Route';
|
|
20
20
|
import { RowItem } from '../../commons/RowItem';
|
|
@@ -54,7 +54,7 @@ const ManageSubUnit = ({ route }) => {
|
|
|
54
54
|
onPress={addSubUnit}
|
|
55
55
|
style={styles.headerButton}
|
|
56
56
|
>
|
|
57
|
-
<
|
|
57
|
+
<IconOutline name={'plus'} size={27} color={Colors.Black} />
|
|
58
58
|
</TouchableOpacity>
|
|
59
59
|
<TouchableOpacity
|
|
60
60
|
// onPress={handleShowMenuAction}
|
|
@@ -112,7 +112,7 @@ const ManageSubUnit = ({ route }) => {
|
|
|
112
112
|
} devices`}
|
|
113
113
|
onPress={() => goToEditSubUnit(item, unit)}
|
|
114
114
|
rightComponent={
|
|
115
|
-
<
|
|
115
|
+
<IconOutline
|
|
116
116
|
name="right"
|
|
117
117
|
size={20}
|
|
118
118
|
color={Colors.Gray6}
|
|
@@ -8,7 +8,7 @@ import React, {
|
|
|
8
8
|
} from 'react';
|
|
9
9
|
import { View, ScrollView, TouchableOpacity } from 'react-native';
|
|
10
10
|
import { useNavigation } from '@react-navigation/native';
|
|
11
|
-
import
|
|
11
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
12
12
|
import { HeaderCustom } from '../../commons/Header';
|
|
13
13
|
import Text from '../../commons/Text';
|
|
14
14
|
import NavBar from '../../commons/NavBar';
|
|
@@ -142,7 +142,7 @@ const SelectAddToFavorites = memo(({ route }) => {
|
|
|
142
142
|
style={styles.buttonClose}
|
|
143
143
|
onPress={goBack}
|
|
144
144
|
>
|
|
145
|
-
<
|
|
145
|
+
<IconOutline name={'close'} size={24} color={Colors.Black} />
|
|
146
146
|
</TouchableOpacity>
|
|
147
147
|
),
|
|
148
148
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -2,7 +2,7 @@ import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
|
2
2
|
import { TouchableOpacity, View, ScrollView } from 'react-native';
|
|
3
3
|
import MapView, { Marker, Circle, PROVIDER_GOOGLE } from 'react-native-maps';
|
|
4
4
|
import { useNavigation } from '@react-navigation/native';
|
|
5
|
-
import
|
|
5
|
+
import { IconOutline } from '@ant-design/icons-react-native';
|
|
6
6
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
7
7
|
import { check, RESULTS } from 'react-native-permissions';
|
|
8
8
|
import { openPromptEnableLocation } from '../../utils/Setting/Location';
|
|
@@ -210,7 +210,7 @@ const SelectAddress = memo(({ route }) => {
|
|
|
210
210
|
style={styles.button}
|
|
211
211
|
accessibilityLabel={AccessibilityLabel.BUTTON_CHOOSE_ON_MAP}
|
|
212
212
|
>
|
|
213
|
-
<
|
|
213
|
+
<IconOutline name="enviroment" size={27} color={Colors.Primary} />
|
|
214
214
|
<Text type="Body" color={Colors.Gray9} style={styles.text} bold>
|
|
215
215
|
{t('choose_on_map')}
|
|
216
216
|
</Text>
|
|
@@ -248,7 +248,7 @@ const SelectAddress = memo(({ route }) => {
|
|
|
248
248
|
}}
|
|
249
249
|
tracksViewChanges={false}
|
|
250
250
|
>
|
|
251
|
-
<
|
|
251
|
+
<IconOutline name="enviroment" size={27} color={Colors.Blue10} />
|
|
252
252
|
</Marker>
|
|
253
253
|
</>
|
|
254
254
|
)}
|