Skip to content

Commit

Permalink
Remove unnecessary useMemos
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Kumar <[email protected]>
  • Loading branch information
abhi-kr-2100 committed May 19, 2024
1 parent 6a09dcd commit 8a193b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webapp/src/NavigationBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import PageContainer from './PageContainer';

import { getNavbarItems } from '../assets/routes';
import { useAuth0 } from '@auth0/auth0-react';
import { useMemo } from 'react';

export default function NavigationBar() {
const { isAuthenticated, loginWithRedirect, logout } = useAuth0();
const navBarItems = useMemo(
() => getNavbarItems(isAuthenticated, loginWithRedirect, logout),
[isAuthenticated, loginWithRedirect, logout],
const navBarItems = getNavbarItems(
isAuthenticated,
loginWithRedirect,
logout,
);

return (
Expand Down

0 comments on commit 8a193b5

Please sign in to comment.