Spaces:
Sleeping
Sleeping
mhupfauer
commited on
Commit
·
2f16bb6
1
Parent(s):
e216445
Remove load / deploy header
Browse files
components/editor/index.tsx
CHANGED
|
@@ -21,9 +21,7 @@ import { defaultHTML } from "@/lib/consts";
|
|
| 21 |
import { Preview } from "@/components/editor/preview";
|
| 22 |
import { useEditor } from "@/hooks/useEditor";
|
| 23 |
import { AskAI } from "@/components/editor/ask-ai";
|
| 24 |
-
import { DeployButton } from "./deploy-button";
|
| 25 |
import { Page, Project } from "@/types";
|
| 26 |
-
import { SaveButton } from "./save-button";
|
| 27 |
import { LoadProject } from "../my-projects/load-project";
|
| 28 |
import { isTheSameHtml } from "@/lib/compare-html-diff";
|
| 29 |
import { ListPages } from "./pages";
|
|
@@ -196,12 +194,6 @@ export const AppEditor = ({
|
|
| 196 |
router.push(`/projects/${project.space_id}`);
|
| 197 |
}}
|
| 198 |
/>
|
| 199 |
-
{/* for these buttons pass the whole pages */}
|
| 200 |
-
{project?._id ? (
|
| 201 |
-
<SaveButton pages={pages} prompts={prompts} />
|
| 202 |
-
) : (
|
| 203 |
-
<DeployButton pages={pages} prompts={prompts} />
|
| 204 |
-
)}
|
| 205 |
</Header>
|
| 206 |
<main className="bg-neutral-950 flex-1 max-lg:flex-col flex w-full max-lg:h-[calc(100%-82px)] relative">
|
| 207 |
{currentTab === "chat" && (
|
|
|
|
| 21 |
import { Preview } from "@/components/editor/preview";
|
| 22 |
import { useEditor } from "@/hooks/useEditor";
|
| 23 |
import { AskAI } from "@/components/editor/ask-ai";
|
|
|
|
| 24 |
import { Page, Project } from "@/types";
|
|
|
|
| 25 |
import { LoadProject } from "../my-projects/load-project";
|
| 26 |
import { isTheSameHtml } from "@/lib/compare-html-diff";
|
| 27 |
import { ListPages } from "./pages";
|
|
|
|
| 194 |
router.push(`/projects/${project.space_id}`);
|
| 195 |
}}
|
| 196 |
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
</Header>
|
| 198 |
<main className="bg-neutral-950 flex-1 max-lg:flex-col flex w-full max-lg:h-[calc(100%-82px)] relative">
|
| 199 |
{currentTab === "chat" && (
|