chore: lint
This commit is contained in:
@@ -1,22 +1,16 @@
|
|||||||
import React, {useCallback, useEffect, useRef} from 'react';
|
import React, { useCallback, useEffect, useRef } from 'react';
|
||||||
import { useSocketStore } from '../../context/socket';
|
import { useSocketStore } from '../../context/socket';
|
||||||
import { getMappedCoordinates } from "../../helpers/inputHelpers";
|
import { getMappedCoordinates } from "../../helpers/inputHelpers";
|
||||||
import { useGlobalInfoStore } from "../../context/globalInfo";
|
import { useGlobalInfoStore } from "../../context/globalInfo";
|
||||||
|
|
||||||
interface CreateRefCallback {
|
interface CreateRefCallback {
|
||||||
|
|
||||||
(ref: React.RefObject<HTMLCanvasElement>): void;
|
(ref: React.RefObject<HTMLCanvasElement>): void;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface CanvasProps {
|
interface CanvasProps {
|
||||||
|
|
||||||
width: number;
|
width: number;
|
||||||
|
|
||||||
height: number;
|
height: number;
|
||||||
|
|
||||||
onCreateRef: CreateRefCallback;
|
onCreateRef: CreateRefCallback;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -122,7 +116,7 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
}else {
|
} else {
|
||||||
console.log('Canvas not initialized');
|
console.log('Canvas not initialized');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user