File tree Expand file tree Collapse file tree
saintBarthVolleyApp/frontend/src/app
seasons/[seasonId]/teams/[teamId] Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change 22
33import * as React from "react" ;
44import { useParams , useRouter } from "next/navigation" ;
5+ import Image from "next/image" ;
56import { apiFetch } from "@/lib/api" ;
67import { Button } from "@/components/ui/button" ;
78import { 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 />
Original file line number Diff line number Diff 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 } ` ,
You can’t perform that action at this time.
0 commit comments