|
|
@ -12,11 +12,8 @@ const SolutionList = ({ user }: { user: User }) => {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div class="solution-list">
|
|
|
|
<div class="solution-list">
|
|
|
|
{solutions.map(({ forProblem, content, status }) => (
|
|
|
|
{solutions.map(solution => (
|
|
|
|
<Solution
|
|
|
|
<Solution {...solution} adminControls={isAdministrator(user.role)} />
|
|
|
|
{...{ forProblem, content, status }}
|
|
|
|
|
|
|
|
adminControls={isAdministrator(user.role)}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
))}
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -38,10 +35,10 @@ export const ProfilePage = ({}) => {
|
|
|
|
user && (
|
|
|
|
user && (
|
|
|
|
<main class="page-profile">
|
|
|
|
<main class="page-profile">
|
|
|
|
<Header {...{ user }} />
|
|
|
|
<Header {...{ user }} />
|
|
|
|
|
|
|
|
<div class="subtitle">Profilo</div>
|
|
|
|
|
|
|
|
<button onClick={handleLogout}>Logout</button>
|
|
|
|
<div class="subtitle">Le tue soluzioni</div>
|
|
|
|
<div class="subtitle">Le tue soluzioni</div>
|
|
|
|
<SolutionList {...{ user }} />
|
|
|
|
<SolutionList {...{ user }} />
|
|
|
|
<div class="subtitle">Altro</div>
|
|
|
|
|
|
|
|
<button onClick={handleLogout}>Logout</button>
|
|
|
|
|
|
|
|
</main>
|
|
|
|
</main>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|