Skip to content

Commit

Permalink
fix: add handleCloseSidebar for desktop view (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayagoumi authored Oct 4, 2023
1 parent 4cd1af8 commit 04303a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Navbar/LoginButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default function Navbar() {
) : (
<>
<AliasPicker />
<LoginButton />
<LoginButton handleCloseSidebar={handleCloseSidebar} />
</>
)}
</>
Expand Down

0 comments on commit 04303a1

Please sign in to comment.