@ledvance/ui-biz-bundle 1.1.80 → 1.1.81

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
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.80",
7
+ "version": "1.1.81",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -78,7 +78,7 @@ const StaticMoodEditorPage = () => {
78
78
  ...state.mood,
79
79
  mainLamp: {
80
80
  ...state.mood.mainLamp,
81
- nodes: [cloneDeep(state.mainNode)],
81
+ nodes: state.mainNode ? [cloneDeep(state.mainNode)] : [],
82
82
  },
83
83
  secondaryLamp: {
84
84
  ...state.mood.secondaryLamp,
@@ -88,7 +88,7 @@ const StaticMoodEditorPage = () => {
88
88
  if (isMix && moduleParams.isMixLight) {
89
89
  newMood.secondaryLamp = {
90
90
  ...newMood.secondaryLamp,
91
- nodes: [cloneDeep(state.secondaryNode)],
91
+ nodes: state.secondaryNode ? [cloneDeep(state.secondaryNode)] : [],
92
92
  };
93
93
  newMood.mainLamp.type = 2
94
94
  if (moduleParams.isSupportBrightness && !moduleParams.isSupportTemperature) {
@@ -505,7 +505,8 @@ const SleepWakeUpDetailPage = () => {
505
505
  time={`${convertMinutesTo12HourFormat(
506
506
  state.sleepWakeUp.startTime,
507
507
  is24HourClock
508
- )} - ${convertMinutesTo12HourFormat(state.sleepWakeUp.endTime, is24HourClock)}`}
508
+ )} - ${convertMinutesTo12HourFormat(state.sleepWakeUp.endTime + (state.sleepWakeUp.isSleep ? 0 : state.sleepWakeUp.last * 5),
509
+ is24HourClock)}`}
509
510
  actions={(
510
511
  <View>
511
512
  <Text style={{ fontSize: cx(12), color: '#000000' }}>
@@ -317,7 +317,7 @@ const SleepWakeUpCard = (props: {
317
317
  <Spacer height={cx(16)} />
318
318
  <View style={styles.switchLine}>
319
319
  <Text style={styles.time}>
320
- {`${convertMinutesTo12HourFormat(sleepWakeUp.startTime, is24HourClock)} - ${convertMinutesTo12HourFormat(sleepWakeUp.endTime, is24HourClock)}`}</Text>
320
+ {`${convertMinutesTo12HourFormat(sleepWakeUp.startTime, is24HourClock)} - ${convertMinutesTo12HourFormat(sleepWakeUp.endTime + (sleepWakeUp.isSleep ? 0 : sleepWakeUp.last * 5), is24HourClock)}`}</Text>
321
321
  <SwitchButton
322
322
  value={sleepWakeUp.enable}
323
323
  thumbStyle={{ elevation: 0 }}
@@ -453,4 +453,4 @@ const styles = StyleSheet.create({
453
453
  },
454
454
  })
455
455
 
456
- export default SleepWakeUpPage
456
+ export default SleepWakeUpPage