|
|
|
@ -31,17 +31,21 @@ export const ProfilePage = ({}) => {
|
|
|
|
|
<>
|
|
|
|
|
<Header />
|
|
|
|
|
<main class="page-profile">
|
|
|
|
|
<div class="subtitle">Le tue soluzioni</div>
|
|
|
|
|
<div class="solution-list">
|
|
|
|
|
{sortedSolutions.map(solution => (
|
|
|
|
|
<Solution refreshSolution={refreshSolutions} {...solution} adminControls={isAdministrator(user.role)} />
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="subtitle">Profilo</div>
|
|
|
|
|
<a href={prependBaseUrl('/u/' + user.id)} class="button" role="button">
|
|
|
|
|
Vai alla tua pagina utente
|
|
|
|
|
Vai alla tua pagina pubblica
|
|
|
|
|
</a>
|
|
|
|
|
<button onClick={handleLogout}>Logout</button>
|
|
|
|
|
{sortedSolutions.length > 0 && (
|
|
|
|
|
<>
|
|
|
|
|
<div class="subtitle">Le tue soluzioni</div>
|
|
|
|
|
<div class="solution-list">
|
|
|
|
|
{sortedSolutions.map(solution => (
|
|
|
|
|
<Solution refreshSolution={refreshSolutions} {...solution} adminControls={isAdministrator(user.role)} />
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</main>
|
|
|
|
|
</>
|
|
|
|
|
)
|
|
|
|
|