diff --git a/app/(protected)/sponsors/page.tsx b/app/(protected)/sponsors/page.tsx index 8ce3690..d531cec 100644 --- a/app/(protected)/sponsors/page.tsx +++ b/app/(protected)/sponsors/page.tsx @@ -24,7 +24,7 @@ export default function SponsorsPage() { (sponsor: any) => !recentSlugsOrIds.has(sponsor.slug) && !recentSlugsOrIds.has(sponsor.id), ); - const isEmpty = originalSponsors.length === 0; + const isEmpty = sponsors.length === 0; if (isLoading) { return ( diff --git a/app/components/ShapeCanvas.tsx b/app/components/ShapeCanvas.tsx index 8a8f8c4..0a8950f 100644 --- a/app/components/ShapeCanvas.tsx +++ b/app/components/ShapeCanvas.tsx @@ -14,7 +14,7 @@ const ShapeCanvas: React.FC = ({ canvasHeight, }) => { const canvasRef = useRef(null); - const previousVerticesRef = useRef<{ x: number; y: number }[] | null>(null); + const previousVerticesRef = useRef<{ x: number; y: number; }[] | null>(null); const lastDrawTimeRef = useRef(performance.now()); const redrawIntervalRef = useRef(0); @@ -92,7 +92,7 @@ const ShapeCanvas: React.FC = ({ ctx.fill(); // Application du flou - ctx.filter = "blur(100px)"; + // ctx.filter = "blur(100px)"; ctx.fillStyle = gradient; ctx.fill(); @@ -118,7 +118,7 @@ const ShapeCanvas: React.FC = ({ ); }; diff --git a/app/riders/[slug]/page.tsx b/app/riders/[slug]/page.tsx index 7994054..579e3cd 100644 --- a/app/riders/[slug]/page.tsx +++ b/app/riders/[slug]/page.tsx @@ -58,9 +58,8 @@ export default function RiderPage() { const fullName = rider?.identity?.fullName || - `${rider?.identity?.firstName || ""} ${ - rider?.identity?.lastName || "" - }`.trim() || + `${rider?.identity?.firstName || ""} ${rider?.identity?.lastName || "" + }`.trim() || "Nom non renseigné"; const sports = rider?.preferences?.sports?.map((s) => s.name).filter(Boolean) || []; @@ -70,18 +69,17 @@ export default function RiderPage() { const age: number = typeof window !== "undefined" && birthDate ? new Date().getFullYear() - - birthDate.getFullYear() - - (new Date().getMonth() < birthDate.getMonth() || + birthDate.getFullYear() - + (new Date().getMonth() < birthDate.getMonth() || (new Date().getMonth() === birthDate.getMonth() && new Date().getDate() < birthDate.getDate()) - ? 1 - : 0) + ? 1 + : 0) : 0; const location = rider?.identity?.city || rider?.identity?.country - ? `${rider?.identity?.city || ""}${ - rider?.identity?.city && rider?.identity?.country ? ", " : "" - }${rider?.identity?.country || ""}` + ? `${rider?.identity?.city || ""}${rider?.identity?.city && rider?.identity?.country ? ", " : "" + }${rider?.identity?.country || ""}` : ""; const profilePicture = rider?.avatarUrl && rider?.avatarUrl.includes("http") @@ -341,8 +339,8 @@ export default function RiderPage() { src={profilePicture} alt={fullName} width={600} - height={800} - className="rounded-xl object-cover w-full border-4 border-primary-green" + height={1200} + className="rounded-xl object-cover w-full border-4 border-primary-green h-[80dvh]" ref={profileImgRef} onLoad={() => { setImgLoaded(true); @@ -544,8 +542,8 @@ export default function RiderPage() { const videoId = url.includes("youtube.com") ? new URL(url).searchParams.get("v") : url.includes("youtu.be") - ? url.split("/").pop() - : null; + ? url.split("/").pop() + : null; return videoId ? (

- {`${performance?.location?.city || "Ville inconnue"}, ${ - performance?.location?.country || "Pays inconnu" - }`} + {`${performance?.location?.city || "Ville inconnue"}, ${performance?.location?.country || "Pays inconnu" + }`}

{performance?.weather && (

diff --git a/src/widgets/offers/ListOffers.tsx b/src/widgets/offers/ListOffers.tsx index 53f2905..00d17b7 100644 --- a/src/widgets/offers/ListOffers.tsx +++ b/src/widgets/offers/ListOffers.tsx @@ -106,18 +106,6 @@ export default function ListOffers() { )} - - Statut :{" "} - - {offer.status ? ( - offer.status - ) : ( - - Non renseigné - - )} - -