File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -24,20 +24,14 @@ const useBottomSheet = () => {
24
24
25
25
const showSheet = ( component , options : VueBottomSheetOptions ) =>
26
26
new Promise ( ( resolve : any ) => {
27
- let resolved = false ;
27
+ const resolved = false ;
28
28
29
29
const listeners = Object . entries ( options . on ?? { } ) . reduce ( ( listeners , [ key , value ] ) => {
30
30
listeners [ 'on' + key . charAt ( 0 ) . toUpperCase ( ) + key . slice ( 1 ) ] = value ;
31
31
return listeners ;
32
32
} , { } ) ;
33
33
34
- let navEntryInstance = createNativeView (
35
- component ,
36
- Object . assign (
37
- options . props ?? { } ,
38
- listeners
39
- )
40
- ) ;
34
+ const navEntryInstance = createNativeView ( component , Object . assign ( options . props ?? { } , listeners ) ) ;
41
35
navEntryInstance . mount ( ) ;
42
36
43
37
const viewAttached = ( options . view as View ) ?? Frame . topmost ( ) . currentPage ;
You can’t perform that action at this time.
0 commit comments