Skip to content

Commit d489d0c

Browse files
committed
fix: lint 오류 해결
1 parent e885ad2 commit d489d0c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

apps/frontend/src/hooks/useCursor.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ import { useCallback, useEffect, useRef, useState } from "react";
44
import { SocketIOProvider } from "y-socket.io";
55
import useUserStore from "@/store/useUserStore";
66

7-
const CURSOR_COLORS = [
8-
"#7d7b94",
9-
"#41c76d",
10-
"#f86e7e",
11-
"#f6b8b8",
12-
"#f7d353",
13-
"#3b5bf7",
14-
"#59cbf7",
15-
] as const;
16-
177
export interface AwarenessState {
188
cursor: XYPosition | null;
199
color: string;
@@ -64,7 +54,7 @@ export function useCollaborativeCursors({
6454
const states = new Map(
6555
Array.from(
6656
wsProvider.awareness.getStates() as Map<number, AwarenessState>,
67-
).filter(([key, state]) => state.cursor !== null),
57+
).filter(([, state]) => state.cursor !== null),
6858
);
6959
setCursors(states);
7060
});

0 commit comments

Comments
 (0)