From 0911e25e1afd9ac7a8dee1fd2aa0847c03849505 Mon Sep 17 00:00:00 2001 From: Deveshi Dwivedi Date: Fri, 21 Jun 2024 13:14:16 +0530 Subject: [PATCH] minor fixes, errors resolved --- modules/room/components/Canvas.tsx | 3 +-- modules/room/components/MousePosition.tsx | 2 +- modules/room/components/MouseRenderer.tsx | 4 ++-- modules/room/components/{SocketMouse.tsx => UserMouse.tsx} | 6 +++--- 4 files changed, 7 insertions(+), 8 deletions(-) rename modules/room/components/{SocketMouse.tsx => UserMouse.tsx} (90%) diff --git a/modules/room/components/Canvas.tsx b/modules/room/components/Canvas.tsx index 275dd96..4f5ec17 100644 --- a/modules/room/components/Canvas.tsx +++ b/modules/room/components/Canvas.tsx @@ -5,7 +5,6 @@ import { useRef, useState, useEffect } from "react"; import { useKeyPressEvent } from "react-use"; import { useDraw, useSocketDraw } from "../hooks/Canvas.hooks"; import { socket } from "@/common/lib/socket"; -import { drawFromSocket } from "../helpers/Canvas.helpers"; import Minimap from "./Minimap"; const Canvas = () => { @@ -64,7 +63,7 @@ const Canvas = () => { } }, [dragging]); - useSocketDraw(ctx, copyCanvasToSmall); + useSocketDraw(ctx,drawing, copyCanvasToSmall); return (