From 7ebacbc40ce7b1e2674ae3b31ed850fdfd722a59 Mon Sep 17 00:00:00 2001 From: renata_vl Date: Wed, 20 Nov 2024 00:12:23 +0200 Subject: [PATCH] hot fix --- src/containers/about-chat-sidebar/AboutChatSidebar.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/containers/about-chat-sidebar/AboutChatSidebar.tsx b/src/containers/about-chat-sidebar/AboutChatSidebar.tsx index f3ae439edd..6af057a142 100644 --- a/src/containers/about-chat-sidebar/AboutChatSidebar.tsx +++ b/src/containers/about-chat-sidebar/AboutChatSidebar.tsx @@ -45,13 +45,10 @@ const AboutChatSidebar: FC = ({ const { _id, firstName, lastName, photo, professionalSummary } = user const { path: pathToProfile } = authRoutes.userProfile - const navigateToUserProfile = () => { + const navigateToUserProfile = () => navigate(createUrlPath(pathToProfile, _id, { role })) - } - const onSeeAllClick = (text: SidebarContentEnum) => { - setTitleText(text) - } + const onSeeAllClick = (text: SidebarContentEnum) => setTitleText(text) const goBackBtn = titleText !== About && ( setTitleText(About)} sx={styles.goBackBtn}>