@ledvance/ui-biz-bundle 1.0.41 → 1.0.42

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.0.41",
7
+ "version": "1.0.42",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -161,7 +161,7 @@ const BiorhythmEditPage = () => {
161
161
  rightButtonIcon={(saveEnable() && !minimumTipEnable()) ? res.ic_check : res.ic_uncheck}
162
162
  onRightButtonPress={onTopBarRightBtnClick}/>
163
163
  <ScrollView>
164
- <LdvTopName title={I18n.getLang('add_new_trigger_time_headline_text')}/>
164
+ <LdvTopName title={I18n.getLang(isAdd ? 'add_new_trigger_time_headline_text' : 'edit_trigger_time_headline_text')}/>
165
165
  <View
166
166
  style={{
167
167
  marginHorizontal: cx(24),
@@ -1,4 +1,4 @@
1
- import React, {useCallback, useEffect} from 'react'
1
+ import React, {useCallback, useEffect, useMemo} from 'react'
2
2
  import {FlatList, Image, Linking, Platform, ScrollView, Switch, Text, TouchableOpacity, View} from 'react-native'
3
3
  import {useNavigation} from '@react-navigation/native'
4
4
  import TimeCircular from './circular/TimeCircular'
@@ -776,7 +776,5 @@ const BiorhythmPage = () => {
776
776
  }
777
777
 
778
778
  export default BiorhythmPage
779
- function useMemo(arg0: () => boolean, arg1: any[]) {
780
- throw new Error('Function not implemented.')
781
- }
779
+
782
780
 
@@ -160,14 +160,11 @@ const SleepWakeUpPage = () => {
160
160
  }
161
161
 
162
162
  const editTimePlanStatus = (sleepConflict, wakeupConflict, newList, fixItem) => {
163
- console.log(newList, '< --- newList')
164
- console.log(sleepConflict, '< --- sleepConflict')
165
163
  const { isSleep } = fixItem
166
164
  if (sleepConflict.length) {
167
165
  const listSleep = isSleep ? [...newList] : [...state.sleepScheduleList]
168
166
  const updateSleepList = updateList(listSleep, sleepConflict)
169
167
  if (!isSleep) {
170
- console.log(updateSleepList, 'updateSleepList')
171
168
  setSleepPlan(updateSleepList)
172
169
  }
173
170
 
@@ -176,7 +173,6 @@ const SleepWakeUpPage = () => {
176
173
  const listWakeUp = isSleep ? [...state.wakeUpScheduleList] : [...newList]
177
174
  const updateWakeUpList = updateList(listWakeUp, wakeupConflict)
178
175
  if (isSleep) {
179
- console.log(updateWakeUpList, 'updateWakeUpList')
180
176
  setWakeUpPlan(updateWakeUpList)
181
177
  }
182
178
  }
@@ -321,7 +317,7 @@ const SleepWakeUpPage = () => {
321
317
  style={styles.emptyBtn}
322
318
  textStyle={{ color: '#fff' }}
323
319
  text={I18n.getLang('sleepwakeschedule_add_button_text2')}
324
- onPress={() => onAddScheduleDialogItemClick(true, 'add')}
320
+ onPress={() => onAddScheduleDialogItemClick(false, 'add')}
325
321
  />
326
322
  </View>}
327
323
  </View>