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