Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pksjce committed Nov 9, 2021
1 parent 7e3a288 commit a17e3d5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ const Overlay = React.forwardRef<HTMLDivElement, OverlayProps>(
},
forwardedRef
): ReactElement => {
debugger
const overlayRef = useRef<HTMLDivElement>(null)
const combinedRef = useCombinedRefs(overlayRef, forwardedRef)
const {theme} = useTheme()
Expand All @@ -149,14 +148,12 @@ const Overlay = React.forwardRef<HTMLDivElement, OverlayProps>(
})

useEffect(() => {
debugger
if (height === 'initial' && combinedRef.current?.clientHeight) {
combinedRef.current.style.height = `${combinedRef.current.clientHeight}px`
}
}, [height, combinedRef])

useLayoutEffect(() => {
debugger
const {x, y} = getSlideAnimationStartingVector(anchorSide)
if ((!x && !y) || !overlayRef.current?.animate || visibility === 'hidden') {
return
Expand Down

0 comments on commit a17e3d5

Please sign in to comment.