From e0909acbf21b701f698d4f85ae94959769978945 Mon Sep 17 00:00:00 2001 From: mayonnaise <90057279+Mayanzev@users.noreply.github.com> Date: Fri, 3 May 2024 03:20:03 +0300 Subject: [PATCH] fix --- .../login-navigation/login-navigation.tsx | 23 +++++++++---------- src/pages/login-screen/login-screen.tsx | 12 ++++------ 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/src/components/login-navigation/login-navigation.tsx b/src/components/login-navigation/login-navigation.tsx index 68593fe..a66e6ad 100644 --- a/src/components/login-navigation/login-navigation.tsx +++ b/src/components/login-navigation/login-navigation.tsx @@ -9,36 +9,35 @@ function HeaderNavigation(): JSX.Element { const favoriteOffers = offers.filter((offer) => offer.isFavorite); const userData = useAppSelector((state) => state.userData); const authorizationStatus = useAppSelector((state) => state.authorizationStatus); + const handleSignOut = () => { + dispatch(logoutAction()); + }; return (