Skip to content

Commit

Permalink
fix: lint 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
yewonJin committed Nov 19, 2024
1 parent e885ad2 commit d489d0c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions apps/frontend/src/hooks/useCursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@ import { useCallback, useEffect, useRef, useState } from "react";
import { SocketIOProvider } from "y-socket.io";
import useUserStore from "@/store/useUserStore";

const CURSOR_COLORS = [
"#7d7b94",
"#41c76d",
"#f86e7e",
"#f6b8b8",
"#f7d353",
"#3b5bf7",
"#59cbf7",
] as const;

export interface AwarenessState {
cursor: XYPosition | null;
color: string;
Expand Down Expand Up @@ -64,7 +54,7 @@ export function useCollaborativeCursors({
const states = new Map(
Array.from(
wsProvider.awareness.getStates() as Map<number, AwarenessState>,
).filter(([key, state]) => state.cursor !== null),
).filter(([, state]) => state.cursor !== null),
);
setCursors(states);
});
Expand Down

0 comments on commit d489d0c

Please sign in to comment.