fix: aggiustati dei dettagli
This commit is contained in:
@@ -31,17 +31,21 @@ export const ProfilePage = ({}) => {
|
|||||||
<>
|
<>
|
||||||
<Header />
|
<Header />
|
||||||
<main class="page-profile">
|
<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>
|
<div class="subtitle">Profilo</div>
|
||||||
<a href={prependBaseUrl('/u/' + user.id)} class="button" role="button">
|
<a href={prependBaseUrl('/u/' + user.id)} class="button" role="button">
|
||||||
Vai alla tua pagina utente
|
Vai alla tua pagina pubblica
|
||||||
</a>
|
</a>
|
||||||
<button onClick={handleLogout}>Logout</button>
|
<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>
|
</main>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user