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';
1111import { DrawerVariantStylesType , IDrawerControlled , IDrawerStandAlone } from './types' ;
1212
1313/* Constants for useScrollEffect */
14- const CONDITION = true ;
1514const SCROLL_DISTANCE = 5 ;
1615/* Constants for useZoomEffect (footer) */
1716const FOOTER_EDIT_STYLES : CssProperty [ ] = [
@@ -34,11 +33,10 @@ const DrawerControlledComponent = React.forwardRef(
3433 const device = useMediaDevice ( ) ;
3534 const stylesByDevice = styles [ device ] ;
3635
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+ } ) ;
4240
4341 const footerRef = useZoomEffect ( FOOTER_EDIT_STYLES , MAX_ZOOM ) ;
4442
You can’t perform that action at this time.
0 commit comments