@ledvance/ui-biz-bundle 1.1.164 → 1.1.165

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.164",
7
+ "version": "1.1.165",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -9,16 +9,15 @@ import { useParams } from '@ledvance/base/src/hooks/Hooks'
9
9
  import I18n from '@ledvance/base/src/i18n'
10
10
  import { useDeviceInfo, useSystemTimeFormate, } from '@ledvance/base/src/models/modules/NativePropsSlice'
11
11
  import res from '@ledvance/base/src/res'
12
- import { xLog } from '@ledvance/base/src/utils'
13
12
  import { cctToColor } from '@ledvance/base/src/utils/cctUtils'
14
13
  import { convertMinutesTo12HourFormat, loopText, showDialog } from '@ledvance/base/src/utils/common'
15
14
  import { useNavigation } from '@react-navigation/native'
16
15
  import { useDebounceFn, useReactive, useUpdateEffect } from 'ahooks'
17
16
  import { useConflictTask } from 'hooks/DeviceDpStateHooks'
18
17
  import { cloneDeep, sortBy } from 'lodash'
19
- import React, { useCallback, useEffect, useMemo, useState } from 'react'
20
- import { FlatList, Image, Linking, ScrollView, Switch, Text, TouchableOpacity, View, AsyncStorage } from 'react-native'
21
- import { Dialog, Modal, Utils } from 'tuya-panel-kit'
18
+ import React, { useCallback, useMemo, useState } from 'react'
19
+ import { FlatList, Image, Linking, ScrollView, Text, TouchableOpacity, View } from 'react-native'
20
+ import { Dialog, Modal, SwitchButton, Utils } from 'tuya-panel-kit'
22
21
  import { ui_biz_routerKey } from '../../navigation/Routers'
23
22
  import { replaceImg, useBiorhythm, useStorageBiorhythm } from './BiorhythmActions'
24
23
  import {
@@ -243,7 +242,7 @@ const BiorhythmPage = (props: { theme?: ThemeType }) => {
243
242
  backText={deviceInfo.name}
244
243
  onBackClick={navigation.goBack}
245
244
  headlineTopContent={
246
- <View style={{flexDirection: 'row', justifyContent: 'flex-end'}}>
245
+ <View style={{flexDirection: 'row', justifyContent: 'flex-end', marginBottom: cx(10)}}>
247
246
  <TouchableOpacity
248
247
  style={{paddingLeft: cx(16)}}
249
248
  onPress={() => {
@@ -274,10 +273,8 @@ const BiorhythmPage = (props: { theme?: ThemeType }) => {
274
273
  </TouchableOpacity>
275
274
  </View>}
276
275
  headlineText={I18n.getLang('add_new_trigger_time_system_back_text')}
277
- headlineIconContent={<Switch
276
+ headlineIconContent={<SwitchButton
278
277
  value={state.enable}
279
- thumbColor={props.theme?.icon.primary}
280
- trackColor={{ false: '#00000026', true: '#ff660036' }}
281
278
  onValueChange={async enable => {
282
279
  const biorhythmTask = {
283
280
  startTime: 0,
@@ -542,10 +539,8 @@ const BiorhythmPage = (props: { theme?: ThemeType }) => {
542
539
  {convertMinutesTo12HourFormat(item.time, is24Hour)}
543
540
  </Text>
544
541
  </View>
545
- <Switch
542
+ <SwitchButton
546
543
  value={item.enable}
547
- thumbColor={props.theme?.icon.primary}
548
- trackColor={{ false: '#00000026', true: '#ff660036' }}
549
544
  onValueChange={e => {
550
545
  item.enable = e
551
546
  requestSetBiorhythm()