fix: altro bug del BASE_URL

pull/1/head
Antonio De Lucreziis 2 years ago
parent 38f63e2e9b
commit 586db511b0

@ -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>

Loading…
Cancel
Save