From dfe110fdee36dbf6efd3e83e952f25ba7b6a6d3e Mon Sep 17 00:00:00 2001 From: claude Date: Mon, 23 Nov 2026 09:36:55 +0100 Subject: [PATCH] CopyButton : type du ref compatible React 19 (RefObject) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LNfwm4yWr3pL8mEeo8475a --- frontend/src/ServerDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ServerDialog.tsx b/frontend/src/ServerDialog.tsx index 57bed5d..db112c7 100644 --- a/frontend/src/ServerDialog.tsx +++ b/frontend/src/ServerDialog.tsx @@ -57,7 +57,7 @@ function selectContents(el: HTMLElement | null) { type CopyState = "idle" | "ok" | "ko"; /** Bouton "copier" avec retour visuel : succes (vert) ou echec (rouge), puis retour a l'etat initial. */ -function CopyButton({ text, label, source }: { text: string; label: string; source?: RefObject }) { +function CopyButton({ text, label, source }: { text: string; label: string; source?: RefObject }) { const [state, setState] = useState("idle"); useEffect(() => { if (state === "idle") return;