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;