Skip to content

Commit

Permalink
revert back some features and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewThien committed Aug 13, 2024
1 parent e9bf72e commit f874af8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
10 changes: 2 additions & 8 deletions app/next-client-app/app/(public)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import Image from "next/image";
import { redirect } from "next/navigation";

export default function Default() {
return (
<>
<div className="relative w-[600x] h-[1000px] ">
<Image src="/logos/demo.jpeg" alt="demo" fill />
</div>
</>
);
redirect("/scanreports");
}
2 changes: 0 additions & 2 deletions app/next-client-app/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import "./custom.css";
import type { Metadata } from "next";
import { Toaster } from "sonner";
import { ThemeProvider } from "@/components/theme-provider";
import Footer from "@/components/core/footer";

export const metadata: Metadata = {
title: "Carrot Mapper",
Expand All @@ -30,7 +29,6 @@ export default async function RootLayout({
disableTransitionOnChange
>
{children}
<Footer />
</ThemeProvider>

<Toaster
Expand Down
5 changes: 0 additions & 5 deletions app/next-client-app/components/core/menuItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import {
Github,
Home,
LogIn,
LogOut,
LucideIcon,
Menu,
MoreHorizontal,
Settings,
Upload,
} from "lucide-react";

Expand All @@ -28,7 +24,6 @@ export interface SidebarItems {

export const sidebarItems: SidebarItems = {
links: [
{ label: "Home", href: "/", icon: Home },
{ label: "Datasets", href: "/datasets/", icon: Folders },
{ label: "Scan Reports", href: "/scanreports/", icon: FileScan },
{
Expand Down
1 change: 1 addition & 0 deletions app/next-client-app/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const config = {
* 3. /_next (Next.js internals)
* 4. /_static (inside /public)
* 5. all root files inside /public (e.g. /favicon.ico)
* 6. folder containing logos inside "public"
*/
"/((?!$|api/|_next/|_static/|logos|[\\w-]+\\.\\w+).*)",
],
Expand Down

0 comments on commit f874af8

Please sign in to comment.