diff --git a/backendia/dashboard/src/components/PhotoOverlay.tsx b/backendia/dashboard/src/components/PhotoOverlay.tsx index b9389c11..088a7f2e 100644 --- a/backendia/dashboard/src/components/PhotoOverlay.tsx +++ b/backendia/dashboard/src/components/PhotoOverlay.tsx @@ -22,12 +22,12 @@ interface PhotoOverlayProps { onImpactsChange?: (impacts: Impact[]) => void; } -export default function PhotoOverlay({ - imageUrl, - impacts, - targetCorners, +export default function PhotoOverlay({ + imageUrl, + impacts, + targetCorners, isEditing = false, - onImpactsChange + onImpactsChange }: PhotoOverlayProps) { const containerRef = useRef(null); const [dimensions, setDimensions] = useState({ width: 0, height: 0 }); @@ -95,8 +95,8 @@ export default function PhotoOverlay({ }; return ( -
setDragIndex(null)} > {/* eslint-disable-next-line @next/next/no-img-element */} - Target Analysis { @@ -114,9 +114,9 @@ export default function PhotoOverlay({ setDimensions({ width: img.clientWidth, height: img.clientHeight }); }} /> - + {dimensions.width > 0 && ( - )} - + {isEditing && (
MODE ÉDITION : CLIC POUR AJOUTER • DRAG POUR DÉPLACER • CLIC DROIT POUR SUPPRIMER diff --git a/backendia/uploads/data/.gitkeep b/backendia/uploads/data/.gitkeep deleted file mode 100644 index 754fc5a5..00000000 --- a/backendia/uploads/data/.gitkeep +++ /dev/null @@ -1 +0,0 @@ -# Keep directory structure diff --git a/backendia/uploads/data/database.sqlite b/backendia/uploads/data/database.sqlite index c48cf2d7..e586b515 100644 Binary files a/backendia/uploads/data/database.sqlite and b/backendia/uploads/data/database.sqlite differ diff --git a/backendia/uploads/images/.gitkeep b/backendia/uploads/images/.gitkeep deleted file mode 100644 index 754fc5a5..00000000 --- a/backendia/uploads/images/.gitkeep +++ /dev/null @@ -1 +0,0 @@ -# Keep directory structure