Skip to content

Commit

Permalink
fix(linter): run locally
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-kirill committed Aug 23, 2024
1 parent 148a9a0 commit 8cf4a6f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions client/src/widgets/header/ui/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,28 @@ export function Header() {
<header>
<nav>
{/* prettier-ignore */}
{/* eslint-disable-next-line */}
<button onClick={(_) => navigate(HOME)}>Home</button>
{/* prettier-ignore */}
{/* eslint-disable-next-line */}
<button onClick={(_) => navigate(CATALOGUE)}>Catalogue</button>
{/* prettier-ignore */}
{/* eslint-disable-next-line */}
<button onClick={(_) => navigate(FAVORITE)}>Favorite</button>
{/* prettier-ignore */}
{jwt.current === undefined && (
<button onClick={(_) => navigate(LOGIN)}>Login</button>
<>
{/* eslint-disable-next-line */}
<button onClick={(_) => navigate(LOGIN)}>Login</button>
</>
)}
{/* prettier-ignore */}
{jwt.current !== undefined &&
Jwt.from(jwt.current).toRole() === Role.Editor && (
{jwt.current !== undefined && Jwt.from(jwt.current).toRole() === Role.Editor && (
<>
{/* eslint-disable-next-line */}
<button onClick={(_) => navigate(PROFILE)}>Profile</button>
)}
</>
)}
</nav>
</header>
);
Expand Down

0 comments on commit 8cf4a6f

Please sign in to comment.