Loading packages/client/src/Moderator/ModCanvasOverlay.tsx +13 −15 Original line number Diff line number Diff line Loading @@ -5,14 +5,13 @@ import { useModerator } from "./Moderator"; export const ModCanvasOverlay = () => { const [mode, setMode] = useState<"SELECT_POINT_1" | "SELECT_POINT_2">( "SELECT_POINT_1" "SELECT_POINT_1", ); const { state, dispatch } = useModerator(); const handleClick = useCallback( (e: { clientX: number; clientY: number }) => { const canvasPos = CanvasCore.instance?.screenToPos(e.clientX, e.clientY); if (canvasPos) { const canvasPos = CanvasCore.get().screenToPos(e.clientX, e.clientY); if (mode === "SELECT_POINT_2") { dispatch({ action: "OPEN_MENU" }); } Loading @@ -22,11 +21,10 @@ export const ModCanvasOverlay = () => { y: canvasPos[1], }); setMode((m) => m === "SELECT_POINT_1" ? "SELECT_POINT_2" : "SELECT_POINT_1" m === "SELECT_POINT_1" ? "SELECT_POINT_2" : "SELECT_POINT_1", ); } }, [dispatch, mode] [dispatch, mode], ); const handleClear = useCallback(() => { Loading packages/client/src/Moderator/UserModSidebar.tsx +2 −2 Original line number Diff line number Diff line Loading @@ -147,8 +147,8 @@ const Captcha = ({ sub }: { sub: string }) => { setStatus({}); const handleStatus = ( id: number, userId: string, _id: number, _userId: string, socketId: string, status: CaptchaStatus, ) => { Loading packages/client/src/components/App.tsx +0 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,6 @@ import "../lib/keybinds"; import { PixelWhoisSidebar } from "./PixelSidebar/PixelWhoisSidebar"; import { KeybindModal } from "./KeybindModal"; import { ProfileModal } from "./Profile/ProfileModal"; import { WelcomeModal } from "./Welcome/WelcomeModal"; import { InfoSidebar } from "./Info/InfoSidebar"; import { DynamicModals } from "./DynamicModals"; import { ToastWrapper } from "./ToastWrapper"; Loading packages/client/src/components/CanvasWrapper.tsx +3 −2 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ export const CanvasWrapper = () => { } | undefined >( (useCssZoom) => { (_useCssZoom) => { const router = Router.get().canvas; if (!router) return undefined; Loading @@ -49,7 +49,8 @@ export const CanvasWrapper = () => { router.x, router.y, config.canvas.size, useCssZoom, // at one point we needed to pass if we were using css zoom // useCssZoom, ); return { Loading packages/client/src/components/Chat/ChatInfoDialog.tsx +0 −6 Original line number Diff line number Diff line Loading @@ -7,12 +7,6 @@ import { ModalContent, ModalFooter, ModalHeader, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, useDisclosure, } from "@heroui/react"; import { useDialog } from "../../contexts/DialogContext"; Loading Loading
packages/client/src/Moderator/ModCanvasOverlay.tsx +13 −15 Original line number Diff line number Diff line Loading @@ -5,14 +5,13 @@ import { useModerator } from "./Moderator"; export const ModCanvasOverlay = () => { const [mode, setMode] = useState<"SELECT_POINT_1" | "SELECT_POINT_2">( "SELECT_POINT_1" "SELECT_POINT_1", ); const { state, dispatch } = useModerator(); const handleClick = useCallback( (e: { clientX: number; clientY: number }) => { const canvasPos = CanvasCore.instance?.screenToPos(e.clientX, e.clientY); if (canvasPos) { const canvasPos = CanvasCore.get().screenToPos(e.clientX, e.clientY); if (mode === "SELECT_POINT_2") { dispatch({ action: "OPEN_MENU" }); } Loading @@ -22,11 +21,10 @@ export const ModCanvasOverlay = () => { y: canvasPos[1], }); setMode((m) => m === "SELECT_POINT_1" ? "SELECT_POINT_2" : "SELECT_POINT_1" m === "SELECT_POINT_1" ? "SELECT_POINT_2" : "SELECT_POINT_1", ); } }, [dispatch, mode] [dispatch, mode], ); const handleClear = useCallback(() => { Loading
packages/client/src/Moderator/UserModSidebar.tsx +2 −2 Original line number Diff line number Diff line Loading @@ -147,8 +147,8 @@ const Captcha = ({ sub }: { sub: string }) => { setStatus({}); const handleStatus = ( id: number, userId: string, _id: number, _userId: string, socketId: string, status: CaptchaStatus, ) => { Loading
packages/client/src/components/App.tsx +0 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,6 @@ import "../lib/keybinds"; import { PixelWhoisSidebar } from "./PixelSidebar/PixelWhoisSidebar"; import { KeybindModal } from "./KeybindModal"; import { ProfileModal } from "./Profile/ProfileModal"; import { WelcomeModal } from "./Welcome/WelcomeModal"; import { InfoSidebar } from "./Info/InfoSidebar"; import { DynamicModals } from "./DynamicModals"; import { ToastWrapper } from "./ToastWrapper"; Loading
packages/client/src/components/CanvasWrapper.tsx +3 −2 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ export const CanvasWrapper = () => { } | undefined >( (useCssZoom) => { (_useCssZoom) => { const router = Router.get().canvas; if (!router) return undefined; Loading @@ -49,7 +49,8 @@ export const CanvasWrapper = () => { router.x, router.y, config.canvas.size, useCssZoom, // at one point we needed to pass if we were using css zoom // useCssZoom, ); return { Loading
packages/client/src/components/Chat/ChatInfoDialog.tsx +0 −6 Original line number Diff line number Diff line Loading @@ -7,12 +7,6 @@ import { ModalContent, ModalFooter, ModalHeader, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, useDisclosure, } from "@heroui/react"; import { useDialog } from "../../contexts/DialogContext"; Loading