From e5541a969fcecb3441439bc3512eae2b2ac743c8 Mon Sep 17 00:00:00 2001 From: NKoelblen Date: Sun, 10 May 2026 18:01:52 +0200 Subject: [PATCH] fix: remove unused imports and ensure safe access to item name in TestimonyPage Co-authored-by: Copilot --- src/components/entities/project/public/ProjectTableRow.tsx | 2 +- src/pages/admin/TestimonyPage.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/entities/project/public/ProjectTableRow.tsx b/src/components/entities/project/public/ProjectTableRow.tsx index 2d7495e..a10d2e9 100644 --- a/src/components/entities/project/public/ProjectTableRow.tsx +++ b/src/components/entities/project/public/ProjectTableRow.tsx @@ -7,7 +7,7 @@ import { } from "@mui/material"; import { ResponsiveStack } from "../../../custom/ResponsiveLayout"; import { useResponsiveWidth } from "../../../../hooks/layout/useResponsiveWidth"; -import { useLayoutEffect, useRef, useState } from "react"; +import { useRef } from "react"; import { useBreakpoints } from "../../../../hooks/mediaQueries"; import StretchyTypography from "../../../custom/StretchyTypography"; diff --git a/src/pages/admin/TestimonyPage.tsx b/src/pages/admin/TestimonyPage.tsx index 7ed14f1..7369773 100644 --- a/src/pages/admin/TestimonyPage.tsx +++ b/src/pages/admin/TestimonyPage.tsx @@ -32,7 +32,7 @@ export default function Testimonies() { { key: "name", label: "Nom", - content: (item) => stripHtml(item.name), + content: (item) => stripHtml(item.name || ""), }, { key: "company",