@ledvance/base 1.3.32 → 1.3.33
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
|
@@ -21,6 +21,8 @@ const ApplyForDeviceItem = (props: ApplyForDeviceItemProps) => {
|
|
|
21
21
|
const { dps } = props.deviceInfo
|
|
22
22
|
const curPowerDp = getGlobalParamsDp('cur_power')
|
|
23
23
|
const curPower = dps && JSON.parse(dps) && JSON.parse(dps)[curPowerDp]
|
|
24
|
+
const tempCurrentDp = getGlobalParamsDp('temp_current')
|
|
25
|
+
const tempCurrent = dps && JSON.parse(dps) && JSON.parse(dps)[tempCurrentDp]
|
|
24
26
|
|
|
25
27
|
const styles = StyleSheet.create({
|
|
26
28
|
root: {
|
|
@@ -88,12 +90,15 @@ const ApplyForDeviceItem = (props: ApplyForDeviceItemProps) => {
|
|
|
88
90
|
</View>
|
|
89
91
|
<Spacer height={cx(6)} />
|
|
90
92
|
</View>
|
|
91
|
-
<View style={[styles.offlineIcon, {marginHorizontal: cx(5)}]}>
|
|
93
|
+
<View style={[styles.offlineIcon, { marginHorizontal: cx(5) }]}>
|
|
92
94
|
{!props.deviceInfo.status && <Image style={styles.offlineIcon} source={res.offline_wifi} />}
|
|
93
|
-
{!!props.deviceInfo.status && isNumber(curPower) && <View style={{alignItems: 'flex-end'}}>
|
|
95
|
+
{!!props.deviceInfo.status && isNumber(curPower) && <View style={{ alignItems: 'flex-end' }}>
|
|
94
96
|
<Text style={styles.onlineText}>{`${curPower / 10} W`}</Text>
|
|
95
|
-
<Text style={[styles.onlineText, {fontSize: cx(12),marginTop: cx(5)}]}>{I18n.getLang('consumption_data_field1_headline_text')}</Text>
|
|
96
|
-
|
|
97
|
+
<Text style={[styles.onlineText, { fontSize: cx(12), marginTop: cx(5) }]}>{I18n.getLang('consumption_data_field1_headline_text')}</Text>
|
|
98
|
+
</View>}
|
|
99
|
+
{!!props.deviceInfo.status && isNumber(tempCurrent) && <View style={{ alignItems: 'flex-end' }}>
|
|
100
|
+
<Text style={styles.onlineText}>{`${tempCurrent / 10} ℃`}</Text>
|
|
101
|
+
</View>}
|
|
97
102
|
</View>
|
|
98
103
|
</View>
|
|
99
104
|
)
|