@ledvance/base 1.2.26 → 1.2.27
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
|
@@ -3,6 +3,7 @@ import React from 'react'
|
|
|
3
3
|
import { Utils } from 'tuya-panel-kit'
|
|
4
4
|
import { DeviceInfo } from '../api/native'
|
|
5
5
|
import Spacer from './Spacer'
|
|
6
|
+
import res from '../res'
|
|
6
7
|
|
|
7
8
|
const cx = Utils.RatioUtils.convertX
|
|
8
9
|
|
|
@@ -13,16 +14,21 @@ export interface ApplyForDeviceItemProps {
|
|
|
13
14
|
const ApplyForDeviceItem = (props: ApplyForDeviceItemProps) => {
|
|
14
15
|
return (
|
|
15
16
|
<View style={styles.root}>
|
|
16
|
-
<View style={
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<View style={styles.
|
|
22
|
-
<
|
|
17
|
+
<View style={{ flex: 1 }}>
|
|
18
|
+
<View style={styles.deviceInfo}>
|
|
19
|
+
<Image style={styles.deviceIcon} source={{ uri: props.deviceInfo.deviceIcon }} />
|
|
20
|
+
<Text style={styles.deviceName}>{props.deviceInfo.deviceName}</Text>
|
|
21
|
+
</View>
|
|
22
|
+
<View style={styles.deviceRoomInfo}>
|
|
23
|
+
<View style={styles.roomNameTag}>
|
|
24
|
+
<Text style={styles.roomName}>{props.deviceInfo.roomName}</Text>
|
|
25
|
+
</View>
|
|
23
26
|
</View>
|
|
27
|
+
<Spacer height={cx(6)} />
|
|
28
|
+
</View>
|
|
29
|
+
<View style={[styles.offlineIcon, {marginRight: cx(5)}]}>
|
|
30
|
+
{!props.deviceInfo.status && <Image style={styles.offlineIcon} source={res.offline_wifi} />}
|
|
24
31
|
</View>
|
|
25
|
-
<Spacer height={cx(6)}/>
|
|
26
32
|
</View>
|
|
27
33
|
)
|
|
28
34
|
}
|
|
@@ -31,6 +37,8 @@ const styles = StyleSheet.create({
|
|
|
31
37
|
root: {
|
|
32
38
|
marginHorizontal: cx(8),
|
|
33
39
|
backgroundColor: '#fff',
|
|
40
|
+
flexDirection: 'row',
|
|
41
|
+
alignItems: 'center'
|
|
34
42
|
},
|
|
35
43
|
deviceInfo: {
|
|
36
44
|
flex: 1,
|
|
@@ -67,6 +75,10 @@ const styles = StyleSheet.create({
|
|
|
67
75
|
fontSize: cx(10),
|
|
68
76
|
fontFamily: 'helvetica_neue_lt_std_roman',
|
|
69
77
|
},
|
|
78
|
+
offlineIcon: {
|
|
79
|
+
width: cx(24),
|
|
80
|
+
height: cx(24)
|
|
81
|
+
}
|
|
70
82
|
})
|
|
71
83
|
|
|
72
84
|
export default ApplyForDeviceItem
|
package/src/res/index.ts
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|