website/lib/components/Canvas.js
Function Canvas
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function Canvas() {
const canvasRef = useRef(null);
const [width, setWidth] = useState(null);
const [height, setHeight] = useState(null);
- Create a ticketCreate a ticket
Function position
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const position = useCallback(() => {
if (width === null || height === null) return;
computePosition(reference, floating, {
platform: {
- Create a ticketCreate a ticket