Skip to content

Commit

Permalink
fix: ssr issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Aug 25, 2024
1 parent 7326165 commit ca92462
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/workspace/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ResizablePanel,
ResizableHandle,
} from "@/components/ui/resizable";
import { Preview } from "@/components/webcontainer";
import { Preview } from "@/components/webcontainer/preview";
import Cli from "@/components/workspace/cli";
import Editor from "@/components/workspace/editor";
import FileExplorer from "@/components/workspace/file-explorer";
Expand Down
2 changes: 1 addition & 1 deletion components/providers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PropsWithChildren } from "react";
import { ThemeProvider } from "./theme-provider";
import { InversifyProvider } from "@/di/providers";
import { TerminalContextProvider } from "react-terminal";
import WebContainerProvider from "../webcontainer";
import WebContainerProvider from "@/components/webcontainer/provider";

export default function Providers({ children }: PropsWithChildren) {
return (
Expand Down
9 changes: 0 additions & 9 deletions components/webcontainer/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion components/webcontainer/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { useWebContainer } from "@/components/webcontainer";
import { useWebContainer } from "@/components/webcontainer/use-web-container";
import { useEffect, useRef } from "react";

export function Preview() {
Expand Down
2 changes: 1 addition & 1 deletion components/workspace/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { usePathname, useSearchParams } from "next/navigation";
import { db } from "@/data/db";
import useSWR from "swr";
import { solidity } from "@replit/codemirror-lang-solidity";
import { useWebContainer } from "@/components/webcontainer";
import { useWebContainer } from "@/components/webcontainer/use-web-container";
import { javascript } from "@codemirror/lang-javascript";
import { css } from "@codemirror/lang-css";
import { markdown } from "@codemirror/lang-markdown";
Expand Down

0 comments on commit ca92462

Please sign in to comment.