From 2072059cf4531186ae3657c737b9887fa75e9f93 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Thu, 13 Feb 2025 14:27:36 +0100 Subject: [PATCH] Management: Fix blinking elements (#5443) --- .../left/settings/folders/SettingsFoldersEdit.tsx | 4 ++-- .../left/settings/folders/SettingsFoldersMain.tsx | 4 ++-- src/components/right/Profile.scss | 7 +++++++ src/components/right/Profile.tsx | 5 ++++- src/components/right/RightColumn.tsx | 1 + src/components/right/management/ManageDiscussion.tsx | 4 ++-- src/components/right/management/ManageInvites.tsx | 4 ++-- src/components/right/management/ManageJoinRequests.tsx | 4 ++-- 8 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/components/left/settings/folders/SettingsFoldersEdit.tsx b/src/components/left/settings/folders/SettingsFoldersEdit.tsx index 72e632a23..401710a3e 100644 --- a/src/components/left/settings/folders/SettingsFoldersEdit.tsx +++ b/src/components/left/settings/folders/SettingsFoldersEdit.tsx @@ -23,7 +23,7 @@ import { selectChatFilters } from '../../../../hooks/reducers/useFoldersReducer' import useHistoryBack from '../../../../hooks/useHistoryBack'; import useOldLang from '../../../../hooks/useOldLang'; -import AnimatedIcon from '../../../common/AnimatedIcon'; +import AnimatedIconWithPreview from '../../../common/AnimatedIconWithPreview'; import GroupChatInfo from '../../../common/GroupChatInfo'; import Icon from '../../../common/icons/Icon'; import PrivateChatInfo from '../../../common/PrivateChatInfo'; @@ -283,7 +283,7 @@ const SettingsFoldersEdit: FC = ({
- = ({ return (
- void; + isActive: boolean; }; type StateProps = { @@ -173,6 +174,7 @@ const INTERSECTION_THROTTLE = 500; const Profile: FC = ({ chatId, + isActive, threadId, profileState, theme, @@ -826,7 +828,8 @@ const Profile: FC = ({ {canAddMembers && ( diff --git a/src/components/right/RightColumn.tsx b/src/components/right/RightColumn.tsx index da1ba39a8..c5c4c16a9 100644 --- a/src/components/right/RightColumn.tsx +++ b/src/components/right/RightColumn.tsx @@ -313,6 +313,7 @@ const RightColumn: FC = ({ threadId={threadId} profileState={profileState} isMobile={isMobile} + isActive={isOpen && isActive} onProfileStateChange={setProfileState} /> ); diff --git a/src/components/right/management/ManageDiscussion.tsx b/src/components/right/management/ManageDiscussion.tsx index 6bc1ea833..c80978b0d 100644 --- a/src/components/right/management/ManageDiscussion.tsx +++ b/src/components/right/management/ManageDiscussion.tsx @@ -17,7 +17,7 @@ import useFlag from '../../../hooks/useFlag'; import useHistoryBack from '../../../hooks/useHistoryBack'; import useOldLang from '../../../hooks/useOldLang'; -import AnimatedIcon from '../../common/AnimatedIcon'; +import AnimatedIconWithPreview from '../../common/AnimatedIconWithPreview'; import Avatar from '../../common/Avatar'; import GroupChatInfo from '../../common/GroupChatInfo'; import NothingFound from '../../common/NothingFound'; @@ -248,7 +248,7 @@ const ManageDiscussion: FC = ({
- = ({
- = ({
-