@ledvance/group-ui-biz-bundle 1.0.153 → 1.0.154

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/group-ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.0.153",
7
+ "version": "1.0.154",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -1,6 +1,5 @@
1
- import { xLog } from '@ledvance/base/src/utils'
2
1
  import React, { useCallback, useEffect, useMemo, useState } from 'react'
3
- import { FlatList, Image, Linking, ScrollView, Switch, Text, TouchableOpacity, View } from 'react-native'
2
+ import { FlatList, Image, Linking, ScrollView, Text, TouchableOpacity, View } from 'react-native'
4
3
  import { useNavigation } from '@react-navigation/native'
5
4
  import { useDebounceFn, useReactive, useUpdateEffect } from 'ahooks'
6
5
  import {
@@ -10,7 +9,7 @@ import {
10
9
  getDefBiorhythmUIState,
11
10
  Plan,
12
11
  } from './BiorhythmBean'
13
- import { Dialog, Modal, Utils } from 'tuya-panel-kit'
12
+ import { Dialog, Modal, SwitchButton, Utils } from 'tuya-panel-kit'
14
13
  import { sortBy, cloneDeep } from 'lodash'
15
14
  import iconList from './iconListData'
16
15
  import pIdList from './pIdList'
@@ -246,7 +245,7 @@ const BiorhythmPage = (props: { theme?: ThemeType }) => {
246
245
  backText={uaGroupInfo.name}
247
246
  onBackClick={navigation.goBack}
248
247
  headlineTopContent={
249
- <View style={{flexDirection: 'row', justifyContent: 'flex-end'}}>
248
+ <View style={{flexDirection: 'row', justifyContent: 'flex-end', marginBottom: cx(10)}}>
250
249
  <TouchableOpacity
251
250
  style={{paddingLeft: cx(16)}}
252
251
  onPress={() => {
@@ -277,10 +276,8 @@ const BiorhythmPage = (props: { theme?: ThemeType }) => {
277
276
  </TouchableOpacity>
278
277
  </View>}
279
278
  headlineText={I18n.getLang('add_new_trigger_time_system_back_text')}
280
- headlineIconContent={<Switch
279
+ headlineIconContent={<SwitchButton
281
280
  value={state.enable}
282
- thumbColor={props.theme?.icon.primary}
283
- trackColor={{ false: '#00000026', true: '#ff660036' }}
284
281
  onValueChange={async enable => {
285
282
  if (enable) return showDialog({
286
283
  method: 'confirm',
@@ -584,10 +581,8 @@ const BiorhythmPage = (props: { theme?: ThemeType }) => {
584
581
  {convertMinutesTo12HourFormat(item.time, is24Hour)}
585
582
  </Text>
586
583
  </View>
587
- <Switch
584
+ <SwitchButton
588
585
  value={item.enable}
589
- thumbColor={props.theme?.icon.primary}
590
- trackColor={{ false: '#00000026', true: '#ff660036' }}
591
586
  onValueChange={e => {
592
587
  item.enable = e
593
588
  state.flag = Symbol()