Spaces:
markush1
/
Running on CPU Upgrade

markush1 commited on
Commit
0306a17
·
verified ·
1 Parent(s): cf8d1f3

Update components/editor/index.tsx

Browse files
Files changed (1) hide show
  1. components/editor/index.tsx +1 -6
components/editor/index.tsx CHANGED
@@ -21,7 +21,6 @@ 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 { Project } from "@/types";
26
  import { SaveButton } from "./save-button";
27
  import { LoadProject } from "../my-projects/load-project";
@@ -183,11 +182,7 @@ export const AppEditor = ({ project }: { project?: Project | null }) => {
183
  router.push(`/projects/${project.space_id}`);
184
  }}
185
  />
186
- {project?._id ? (
187
- <SaveButton html={html} prompts={prompts} />
188
- ) : (
189
- <DeployButton html={html} prompts={prompts} />
190
- )}
191
  </Header>
192
  <main className="bg-neutral-950 flex-1 max-lg:flex-col flex w-full max-lg:h-[calc(100%-82px)] relative">
193
  {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 { Project } from "@/types";
25
  import { SaveButton } from "./save-button";
26
  import { LoadProject } from "../my-projects/load-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" && (