From 6b136b0154243c8aec25ee570bd9488352f07a84 Mon Sep 17 00:00:00 2001 From: Ayagoumi Date: Wed, 4 Oct 2023 15:25:17 +0100 Subject: [PATCH] fix: add handleCloseSidebar for desktop view --- src/components/Navbar/LoginButton.tsx | 4 ++-- src/components/Navbar/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Navbar/LoginButton.tsx b/src/components/Navbar/LoginButton.tsx index 03931f1d..17f6b027 100644 --- a/src/components/Navbar/LoginButton.tsx +++ b/src/components/Navbar/LoginButton.tsx @@ -16,10 +16,10 @@ import { LoadAccountMenu } from '../LoadAccountMenu' import AliasPicker from './AliasPicker' interface LoginIconProps { - handleCloseSidebar?: () => void + handleCloseSidebar: () => void } -export default function LoginIcon({ handleCloseSidebar }: LoginIconProps) { +export default function LoginButton({ handleCloseSidebar }: LoginIconProps) { const cAddress = useAppSelector(state => state.appConfig.walletStore?.activeWallet?.ethAddress) const auth = useAppSelector(state => state.appConfig.isAuth) const dispatch = useAppDispatch() diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index 175e5573..b2779189 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -167,7 +167,7 @@ export default function Navbar() { ) : ( <> - + )}