From 6d01c8d29e79dc7ed8e0800b024061af3680d96e Mon Sep 17 00:00:00 2001 From: syoul Date: Tue, 24 Mar 2026 13:19:52 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20supprimer=20bouton=20=E2=9C=95=20de=20l'?= =?UTF-8?q?AnimationPlayer=20(fermeture=20via=20=E2=96=B6=20Animer)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Économise une ligne sur mobile. onClose retiré de l'interface et du JSX. Co-Authored-By: Claude Sonnet 4.6 --- src/App.tsx | 1 - src/components/AnimationPlayer.tsx | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 1d71eb6..b92e8a2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -192,7 +192,6 @@ export default function App() { onPlay={animation.play} onPause={animation.pause} onSpeedChange={animation.setSpeed} - onClose={animation.deactivate} /> )} diff --git a/src/components/AnimationPlayer.tsx b/src/components/AnimationPlayer.tsx index bb50ac3..e8ef05b 100644 --- a/src/components/AnimationPlayer.tsx +++ b/src/components/AnimationPlayer.tsx @@ -9,7 +9,6 @@ interface AnimationPlayerProps { onPlay: () => void; onPause: () => void; onSpeedChange: (s: 1 | 2 | 4) => void; - onClose: () => void; } export function AnimationPlayer({ @@ -21,7 +20,6 @@ export function AnimationPlayer({ onPlay, onPause, onSpeedChange, - onClose, }: AnimationPlayerProps) { const frame = frames[currentIndex]; @@ -93,14 +91,6 @@ export function AnimationPlayer({ ))} - {/* Close */} -