File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11import { useEffect } from 'react' ;
22import isPropValid from '@emotion/is-prop-valid' ;
3- import { css } from '@emotion/react' ;
3+ import { css , useTheme } from '@emotion/react' ;
44import styled from '@emotion/styled' ;
55import { motion , type Transition } from 'framer-motion' ;
66
@@ -49,6 +49,8 @@ function SlideOverPanel({
4949 panelWidth,
5050 ref,
5151} : SlideOverPanelProps ) {
52+ const theme = useTheme ( ) ;
53+
5254 useEffect ( ( ) => {
5355 if ( ! collapsed && onOpen ) {
5456 onOpen ( ) ;
@@ -69,9 +71,9 @@ function SlideOverPanel({
6971 exit = { collapsedStyle }
7072 slidePosition = { slidePosition }
7173 transition = { {
72- type : 'spring ' ,
73- stiffness : 1000 ,
74- damping : 50 ,
74+ type : 'tween ' ,
75+ ease : theme . motionControlPoints . enter ,
76+ duration : theme . motionDurations . slow ,
7577 ...transitionProps ,
7678 } }
7779 role = "complementary"
You can’t perform that action at this time.
0 commit comments