Skip to content

Commit

Permalink
fix: extract onLogoClicked logic to a function
Browse files Browse the repository at this point in the history
  • Loading branch information
masterprog-cmd committed Sep 25, 2024
1 parent 6d07f46 commit c1cfdfd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/core/components/Sidenav/Sidenav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,17 @@ const Sidenav = ({
},
];

const onLogoClicked = () => {
navigationService.push(AppView.Drive);
};

return (
<div className="flex w-64 flex-col">
{isLoadingCredentials && <LoadingSpinner translate={translate} />}

<div
className="flex h-14 shrink-0 cursor-pointer items-center border-b border-gray-5 pl-8 dark:bg-gray-1"
onClick={() => navigationService.push(AppView.Drive)}
onClick={onLogoClicked}
>
<InternxtLogo className="h-auto w-28 text-gray-100" />
</div>
Expand Down

0 comments on commit c1cfdfd

Please sign in to comment.