File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { DrawerStandAlone } from './drawerStandAlone';
11
11
import { DrawerVariantStylesType , IDrawerControlled , IDrawerStandAlone } from './types' ;
12
12
13
13
/* Constants for useScrollEffect */
14
- const CONDITION = true ;
15
14
const SCROLL_DISTANCE = 5 ;
16
15
/* Constants for useZoomEffect (footer) */
17
16
const FOOTER_EDIT_STYLES : CssProperty [ ] = [
@@ -34,11 +33,10 @@ const DrawerControlledComponent = React.forwardRef(
34
33
const device = useMediaDevice ( ) ;
35
34
const stylesByDevice = styles [ device ] ;
36
35
37
- const { scrollableRef, shadowRef } = useScrollEffect (
38
- CONDITION ,
39
- stylesByDevice . titleContainer ?. box_shadow ,
40
- SCROLL_DISTANCE
41
- ) ;
36
+ const { scrollableRef, shadowRef } = useScrollEffect ( {
37
+ shadowStyles : stylesByDevice . titleContainer ?. box_shadow ,
38
+ shadowVisible : SCROLL_DISTANCE ,
39
+ } ) ;
42
40
43
41
const footerRef = useZoomEffect ( FOOTER_EDIT_STYLES , MAX_ZOOM ) ;
44
42
You can’t perform that action at this time.
0 commit comments