From 94d6a5d5eb4b3c44daf4563cc30120f8c5eed2b7 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 27 Aug 2021 21:09:06 +0300 Subject: [PATCH] Profile: Fix scrolling to tap on Android --- src/components/right/RightHeader.tsx | 6 +----- src/components/right/hooks/useProfileState.ts | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/right/RightHeader.tsx b/src/components/right/RightHeader.tsx index 7cb1e12a0..a192f3247 100644 --- a/src/components/right/RightHeader.tsx +++ b/src/components/right/RightHeader.tsx @@ -288,14 +288,10 @@ const RightHeader: FC = ({ const buttonClassName = buildClassName( 'animated-close-icon', + isBackButton && 'state-back', (shouldSkipTransition || shouldSkipAnimation) && 'no-transition', ); - // Add class in the next AF to synchronize with animation with Transition components - useEffect(() => { - backButtonRef.current!.classList.toggle('state-back', isBackButton); - }, [isBackButton]); - return (