Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update components/editor/index.tsx
Browse files
components/editor/index.tsx
CHANGED
@@ -22,8 +22,6 @@ import { Preview } from "@/components/editor/preview";
|
|
22 |
import { useEditor } from "@/hooks/useEditor";
|
23 |
import { AskAI } from "@/components/editor/ask-ai";
|
24 |
import { Project } from "@/types";
|
25 |
-
import { SaveButton } from "./save-button";
|
26 |
-
import { LoadProject } from "../my-projects/load-project";
|
27 |
import { isTheSameHtml } from "@/lib/compare-html-diff";
|
28 |
|
29 |
export const AppEditor = ({ project }: { project?: Project | null }) => {
|
@@ -177,12 +175,6 @@ export const AppEditor = ({ project }: { project?: Project | null }) => {
|
|
177 |
return (
|
178 |
<section className="h-[100dvh] bg-neutral-950 flex flex-col">
|
179 |
<Header tab={currentTab} onNewTab={setCurrentTab}>
|
180 |
-
<LoadProject
|
181 |
-
onSuccess={(project: Project) => {
|
182 |
-
router.push(`/projects/${project.space_id}`);
|
183 |
-
}}
|
184 |
-
/>
|
185 |
-
<SaveButton html={html} prompts={prompts} />
|
186 |
</Header>
|
187 |
<main className="bg-neutral-950 flex-1 max-lg:flex-col flex w-full max-lg:h-[calc(100%-82px)] relative">
|
188 |
{currentTab === "chat" && (
|
|
|
22 |
import { useEditor } from "@/hooks/useEditor";
|
23 |
import { AskAI } from "@/components/editor/ask-ai";
|
24 |
import { Project } from "@/types";
|
|
|
|
|
25 |
import { isTheSameHtml } from "@/lib/compare-html-diff";
|
26 |
|
27 |
export const AppEditor = ({ project }: { project?: Project | null }) => {
|
|
|
175 |
return (
|
176 |
<section className="h-[100dvh] bg-neutral-950 flex flex-col">
|
177 |
<Header tab={currentTab} onNewTab={setCurrentTab}>
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
</Header>
|
179 |
<main className="bg-neutral-950 flex-1 max-lg:flex-col flex w-full max-lg:h-[calc(100%-82px)] relative">
|
180 |
{currentTab === "chat" && (
|