Skip to content

Commit f57588a

Browse files
committed
feat(dashboard): Fixes #138 - Dashboard membres et teams
1 parent 7a9dbca commit f57588a

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

saintBarthVolleyApp/frontend/src/app/admin/partners/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export default function PartnersPage() {
150150
>
151151
<div className="flex items-center gap-3">
152152
{p.logo ? (
153+
// eslint-disable-next-line @next/next/no-img-element
153154
<img
154155
src={p.logo}
155156
alt={p.name}
@@ -256,6 +257,7 @@ export default function PartnersPage() {
256257
placeholder="https://example.com/logo.png"
257258
/>
258259
{editing.logo && (
260+
// eslint-disable-next-line @next/next/no-img-element
259261
<img
260262
src={editing.logo}
261263
alt="Aperçu logo"

saintBarthVolleyApp/frontend/src/app/admin/seasons/[seasonId]/teams/[teamId]/page.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import * as React from "react";
44
import { useParams, useRouter } from "next/navigation";
5+
import Image from "next/image";
56
import { apiFetch } from "@/lib/api";
67
import { Button } from "@/components/ui/button";
78
import { Input } from "@/components/ui/input";
@@ -380,9 +381,12 @@ export default function TeamDetailPage() {
380381
: "h-10 w-10 text-sm";
381382
if (photo) {
382383
return (
383-
<img
384+
<Image
384385
src={`${API}${photo}`}
385386
alt={`${member.firstName} ${member.lastName}`}
387+
width={64}
388+
height={64}
389+
unoptimized
386390
className={`${cls} rounded-full object-cover shrink-0`}
387391
/>
388392
);
@@ -1000,8 +1004,11 @@ export default function TeamDetailPage() {
10001004
return (
10011005
<div className="h-16 w-16 rounded-full bg-muted flex items-center justify-center text-lg font-bold overflow-hidden shrink-0">
10021006
{rolePhoto ? (
1003-
<img
1007+
<Image
10041008
src={`${API}${rolePhoto}`}
1009+
width={64}
1010+
height={64}
1011+
unoptimized
10051012
className="h-full w-full object-cover"
10061013
alt=""
10071014
/>

saintBarthVolleyApp/frontend/src/app/verify-email/page.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@ function VerifyEmailContent() {
2626
useEffect(() => {
2727
const token = searchParams.get("token");
2828

29-
if (!token) {
30-
setStatus("error");
31-
setMessage("Token manquant");
32-
return;
33-
}
34-
3529
const verify = async () => {
30+
if (!token) {
31+
setStatus("error");
32+
setMessage("Token manquant");
33+
return;
34+
}
3635
try {
3736
const res = await apiFetch<ApiMessage>(
3837
`/api/auth/verify-email?token=${token}`,

0 commit comments

Comments
 (0)