Skip to content

Commit

Permalink
refactor files
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshidwivedi committed Jun 27, 2024
1 parent 0f416e8 commit a6306bc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions modules/room/components/Room.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useRoom} from "@/common/recoil/room";

import RoomContextProvider from "../context/Room.context";
import Canvas from "./Canvas";
import { MousePosition } from "./MousePosition";
import MouseRenderer from "./MouseRenderer";
import Canvas from "./board/Canvas";
import { MousePosition } from "./board/MousePosition";
import MouseRenderer from "./board/MouseRenderer";
import { ToolBar } from "./toolbar/ToolBar";
import NameInput from "./NameInput";
import UsersList from "./UsersList";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import { useRef, useState, useEffect } from "react";

import { useKeyPressEvent } from "react-use";

import { useDraw } from "../hooks/useDraw";
import { useDraw } from "@/common/hooks/drawing";

import { useSocketDraw } from "../hooks/useSocketDraw";
import { useSocketDraw } from "../../hooks/useSocketDraw";

import { socket } from "@/common/lib/socket";

import Minimap from "./Minimap";

import room, { useRoom } from "@/common/recoil/room";
import { drawAllMoves } from "../helpers/Canvas.helpers";
import { drawAllMoves } from "../../helpers/Canvas.helpers";


const Canvas = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useViewportSize } from "@/common/hooks/useViewportSize";
import { MotionValue, useMotionValue } from "framer-motion";
import {Dispatch, SetStateAction, forwardRef, useEffect, useRef} from "react";
import {motion} from "framer-motion";
import { useBoardPosition } from "../hooks/useBoardPosition";
import { useBoardPosition } from "../../hooks/useBoardPosition";


const Minimap = forwardRef<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useRef } from "react";
import { useBoardPosition } from "../hooks/useBoardPosition";
import { useBoardPosition } from "../../hooks/useBoardPosition";
import { useInterval, useMouse } from "react-use";
import { socket } from "@/common/lib/socket";
import { motion } from "framer-motion";
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useState } from "react";
import { useBoardPosition } from "../hooks/useBoardPosition";
import { useBoardPosition } from "../../hooks/useBoardPosition";
import { socket } from "@/common/lib/socket";
import { motion } from "framer-motion";
import { BsCursorFill } from "react-icons/bs";
Expand Down

0 comments on commit a6306bc

Please sign in to comment.