Skip to content

Commit

Permalink
fix(ci): run locally
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-kirill committed Aug 25, 2024
1 parent 224ebfa commit b771446
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions client/src/widgets/header/ui/Header.widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import React, { useRef } from "react";
import "./styles/HeaderWidget.css";
import { useNavigate } from "react-router-dom";
import { CATALOGUE, FAVORITE, HOME, LOGIN, PROFILE } from "shared/config/paths";
import { Jwt } from "domain/model/jwt";
import { Role } from "domain/model/role";
import { getCookie } from "shared/cookie/cookie";
import { COOKIE_JWT_KEY } from "shared/config/frontend";

Expand Down Expand Up @@ -36,12 +34,12 @@ export function HeaderWidget() {
</>
)}
{jwt.current !== undefined && (
<>
{/* prettier-ignore */}
{/* eslint-disable-next-line */}
<button onClick={(_) => navigate(PROFILE)}>Profile</button>
</>
)}
<>
{/* prettier-ignore */}
{/* eslint-disable-next-line */}
<button onClick={(_) => navigate(PROFILE)}>Profile</button>
</>
)}
</nav>
</header>
);
Expand Down

0 comments on commit b771446

Please sign in to comment.