Skip to content

Commit

Permalink
trigger login
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshj01 committed Oct 7, 2024
1 parent 1cc9521 commit 8d06bc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/(main)/_components/LoginMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ const LoginMenu: React.FC<LoginMenuProps> = ({ onLogOut, onLogin, loading, onSet
<HoverCardTrigger>
<div className='cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-800 p-2 rounded-lg'>
<div className='cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-800 p-2 rounded-lg'
// onClick={handleLogin}
onClick={() => {
// on small screens login
if (window.innerWidth < 768) {
onLogin();
}
}}
>
<FaGoogle className='size-6 text-black dark:text-white' />
</div>
Expand Down

0 comments on commit 8d06bc7

Please sign in to comment.