Skip to content

Commit

Permalink
Integrate collaborative monaco editor
Browse files Browse the repository at this point in the history
  • Loading branch information
SelwynAng committed Nov 2, 2024
1 parent 608f28d commit 6050f39
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions frontend/components/collab/collab-room.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ import React from "react";
import { Button } from "@/components/ui/button";
import { X } from "lucide-react";
import Chat from "./chat";
import CodeEditor from "./code-editor";
import QuestionDisplay from "./question-display";
import dynamic from "next/dynamic";

const MonacoEditor = dynamic(
() => import("@/components/collab/monaco-editor"),
{
ssr: false,
}
);

export default function CollabRoom({ roomId }: { roomId: string }) {
return (
Expand All @@ -20,7 +27,7 @@ export default function CollabRoom({ roomId }: { roomId: string }) {
<QuestionDisplay roomId={roomId} />
<Chat roomId={roomId} />
</div>
<CodeEditor />
<MonacoEditor roomId={roomId} />
</div>
</div>
);
Expand Down

0 comments on commit 6050f39

Please sign in to comment.