Skip to content

Commit

Permalink
fix main page add temp remove save icon
Browse files Browse the repository at this point in the history
  • Loading branch information
aBgAmeuR committed Oct 11, 2023
1 parent 95005a0 commit 84e8e8d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 34 deletions.
11 changes: 0 additions & 11 deletions app/edit/layout.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions app/edit/page.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
)}
>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<div className="relative flex min-h-screen flex-col">
<div className="flex h-screen w-screen flex-col">
{children}
</div>
</ThemeProvider>
Expand Down
19 changes: 15 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import { redirect } from "next/navigation"
"use client";

export default function IndexPage() {
redirect("/edit")
}
import { ReactFlowProvider } from "reactflow";
import { AppBar } from "@/components/Editor/AppBar";
import { Editor } from "@/components/Editor/Editor";

export default function EditPage() {
return (
<>
<ReactFlowProvider>
<AppBar />
<Editor />
</ReactFlowProvider>
</>
)
}
4 changes: 2 additions & 2 deletions components/Editor/AppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export function AppBar() {
/>
</div>
<div className="flex w-1/3 flex-row items-center justify-end gap-2">
<button className="rounded bg-neutral-100 p-2 text-neutral-800 dark:bg-neutral-800 dark:text-neutral-400">
{/* <button className="rounded bg-neutral-100 p-2 text-neutral-800 dark:bg-neutral-800 dark:text-neutral-400">
<Save size={18} strokeWidth={2} />
</button>
</button> */}
<ThemeToggle />
</div>
</div>
Expand Down

0 comments on commit 84e8e8d

Please sign in to comment.