diff --git a/src/components/atoms/canvas.tsx b/src/components/atoms/canvas.tsx index 7351621e..b0b779d8 100644 --- a/src/components/atoms/canvas.tsx +++ b/src/components/atoms/canvas.tsx @@ -4,6 +4,7 @@ import { getMappedCoordinates } from "../../helpers/inputHelpers"; import { useGlobalInfoStore } from "../../context/globalInfo"; import { GenericModal } from '../atoms/GenericModal'; import { Box, Button, Typography } from '@mui/material'; +import { Highlighter } from "../atoms/Highlighter" interface CreateRefCallback { (ref: React.RefObject): void; @@ -157,6 +158,21 @@ const Canvas = ({ width, height, onCreateRef, highlighterData }: CanvasProps) => return ( <> + + {!showConfirmation && highlighterData && canvasRef.current && ( + + )} setShowConfirmation(false)} @@ -168,12 +184,6 @@ const Canvas = ({ width, height, onCreateRef, highlighterData }: CanvasProps) => onNo={() => handleConfirmation(false)} /> - ); };