|
|
@ -23,13 +23,13 @@ export const Header = ({ user, noLogin }: Props) => (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|
{isAdministrator(user.role) && (
|
|
|
|
{isAdministrator(user.role) && (
|
|
|
|
<div class="nav-item">
|
|
|
|
<div class="nav-item">
|
|
|
|
<Link activeClassName="active" href="/admin">
|
|
|
|
<Link activeClassName="active" href={prependBaseUrl('/admin')}>
|
|
|
|
Pannello Admin
|
|
|
|
Pannello Admin
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
<div class="nav-item">
|
|
|
|
<div class="nav-item">
|
|
|
|
<Link activeClassName="active" href="/profile">
|
|
|
|
<Link activeClassName="active" href={prependBaseUrl('/profile')}>
|
|
|
|
@{user.id}
|
|
|
|
@{user.id}
|
|
|
|
{isAdministrator(user.role) && <> ({ROLE_LABEL[user.role]})</>}
|
|
|
|
{isAdministrator(user.role) && <> ({ROLE_LABEL[user.role]})</>}
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
|