Skip to content

Commit

Permalink
refactor: cleanup unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Jul 23, 2024
1 parent ef95b83 commit 5fa79b9
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 137 deletions.
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function Home() {
</p>
</div>
<h3 className="text-xl font-bold">Choose from a template...</h3>
<Link href="/workspace-open">
<Link href="/workspaces">
<div className="grid w-full max-w-3xl grid-cols-1 gap-6 md:grid-cols-2">
{links.map((link) => (
<HomeCard key={link.title} {...link} />
Expand Down
13 changes: 0 additions & 13 deletions app/workspace-new/page.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion app/workspace-open/page.tsx → app/workspaces/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WorkspaceForm } from "@/components/menu/new-workspace-form";
import { WorkspaceForm } from "@/components/new-workspace-form";
import Existing from "@/components/workspace/existing";
import { getTemplateNames } from "@/data/template";

Expand Down
33 changes: 0 additions & 33 deletions components/menu/index.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions components/menu/mode-toggle.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions components/menu/new.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions components/menu/open.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions components/modal.tsx

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion components/top-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function TopMenu() {

const links = [
{ href: "/", children: "Home" },
{ href: "/workspace-open", children: "Workspaces" },
{ href: "/workspaces", children: "Workspaces" },
{ href: "https://github.com/AElfProject", children: "GitHub" },
];

Expand Down

0 comments on commit 5fa79b9

Please sign in to comment.