@ledvance/base 1.2.4 → 1.2.5

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/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.2.4",
7
+ "version": "1.2.5",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@reduxjs/toolkit": "^1.8.6",
@@ -1,8 +1,8 @@
1
- import React, {PropsWithChildren, useCallback, useEffect} from 'react'
2
- import {BackHandler, View, ViewProps} from 'react-native'
1
+ import React, { PropsWithChildren, useCallback, useEffect } from 'react'
2
+ import { BackHandler, View, ViewProps } from 'react-native'
3
3
  import LDVTopBar from './ldvTopBar'
4
- import {useNavigation} from '@react-navigation/native'
5
- import {Dialog, Toast} from 'tuya-panel-kit'
4
+ import { useNavigation } from '@react-navigation/native'
5
+ import { Dialog, Toast } from 'tuya-panel-kit'
6
6
  import I18n from '@i18n'
7
7
  import LdvTopName from './ldvTopName'
8
8
 
@@ -38,14 +38,14 @@ const Page = (props: PageProps) => {
38
38
  subTitle: props.backDialogContent || '',
39
39
  cancelText: I18n.getLang('cancel_dialog_delete_item_sleepschedule_answer_no_text'),
40
40
  confirmText: I18n.getLang('cancel_dialog_delete_item_sleepschedule_answer_yes_text'),
41
- onConfirm: (_, {close}) => {
41
+ onConfirm: (_, { close }) => {
42
42
  close()
43
43
  navigation.goBack()
44
44
  },
45
- motionConfig:{
45
+ motionConfig: {
46
46
  hideDuration: 0,
47
- showDuration: 100
48
- }
47
+ showDuration: 100,
48
+ },
49
49
  })
50
50
  return true
51
51
  },
@@ -63,7 +63,7 @@ const Page = (props: PageProps) => {
63
63
 
64
64
  return (
65
65
  <>
66
- <View style={[{flex: 1, position: 'relative'}, props.style]}>
66
+ <View style={[{ flex: 1, position: 'relative' }, props.style]}>
67
67
  <LDVTopBar
68
68
  title={props.backText}
69
69
  onBackPress={
@@ -77,16 +77,17 @@ const Page = (props: PageProps) => {
77
77
  onRightButtonPress={props.rightButtonIconClick}
78
78
  rightButtonDisabled={disabled}/>
79
79
  {(!!props.headlineText) &&
80
- <LdvTopName
81
- title={props.headlineText}
82
- rightIcon={props.headlineIcon}
83
- rightIconClick={props.onHeadlineIconClick}
84
- showGreenery={props.showGreenery}
85
- greeneryIcon={props.greeneryIcon}/>}
80
+ <LdvTopName
81
+ title={props.headlineText}
82
+ rightIcon={props.headlineIcon}
83
+ rightIconClick={props.onHeadlineIconClick}
84
+ showGreenery={props.showGreenery}
85
+ greeneryIcon={props.greeneryIcon}/>}
86
86
  {props.children}
87
87
  </View>
88
88
  {!!props.loading && <Toast.Loading
89
- show={!!props.loading}
89
+ style={{ zIndex: 999, elevation: 10 }}
90
+ show={props.loading}
90
91
  onFinish={() => {
91
92
 
92
93
  }}/>}