Skip to content

Commit d2fff57

Browse files
committed
Frontend: Fix lint errors
1 parent dee1c69 commit d2fff57

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

frontend/app/app/collab/[room_id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import dynamic from "next/dynamic";
22

3-
export const MonacoEditor = dynamic(
3+
const MonacoEditor = dynamic(
44
() => import("@/components/collab/monaco-editor"),
55
{
66
ssr: false,

frontend/components/collab/monaco-editor.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default function MonacoEdit({ roomId }: { roomId: string }) {
1212
const [editor, setEditor] =
1313
useState<MonacoEditor.IStandaloneCodeEditor | null>(null);
1414
const [provider, setProvider] = useState<WebsocketProvider | null>(null);
15-
const [binding, setBinding] = useState<MonacoBinding | null>(null);
1615

1716
// this effect manages the lifetime of the Yjs document and the provider
1817
useEffect(() => {
@@ -41,7 +40,6 @@ export default function MonacoEdit({ roomId }: { roomId: string }) {
4140
new Set([editor]),
4241
provider?.awareness
4342
);
44-
setBinding(monacoBinding);
4543
return () => {
4644
monacoBinding.destroy();
4745
};

0 commit comments

Comments
 (0)