diff --git a/frontend/app/(app)/code/[id]/page.tsx b/frontend/app/(app)/code/[id]/page.tsx
index 1fd90cc..d97025b 100644
--- a/frontend/app/(app)/code/[id]/page.tsx
+++ b/frontend/app/(app)/code/[id]/page.tsx
@@ -63,14 +63,6 @@ const CodeEditor = dynamic(() => import("@/components/editor"), {
loading: () => ,
})
-function getReactDefinitionFile() {
- const reactDefinitionFile = fs.readFileSync(
- "node_modules/@types/react/index.d.ts",
- "utf8"
- )
- return reactDefinitionFile
-}
-
export default async function CodePage({ params }: { params: { id: string } }) {
const user = await currentUser()
const sandboxId = params.id
@@ -94,8 +86,6 @@ export default async function CodePage({ params }: { params: { id: string } }) {
return notFound()
}
- const reactDefinitionFile = getReactDefinitionFile()
-
return (
@@ -104,7 +94,6 @@ export default async function CodePage({ params }: { params: { id: string } }) {
diff --git a/frontend/components/editor/index.tsx b/frontend/components/editor/index.tsx
index 05699f1..39d2424 100644
--- a/frontend/components/editor/index.tsx
+++ b/frontend/components/editor/index.tsx
@@ -35,11 +35,9 @@ import { ImperativePanelHandle } from "react-resizable-panels"
export default function CodeEditor({
userData,
sandboxData,
- reactDefinitionFile,
}: {
userData: User
sandboxData: Sandbox
- reactDefinitionFile: string
}) {
const socketRef = useRef(null);