diff --git a/frontend/api/authentication.ts b/frontend/api/authentication.ts index 4ff06b4..b11ef74 100644 --- a/frontend/api/authentication.ts +++ b/frontend/api/authentication.ts @@ -17,8 +17,8 @@ export interface RegisterResponse { export async function registerUser(email: string, password: string): Promise { try { const response = await axiosInstance.post("/auth/register", { - Email: email, - Password: password, + email: email, + password: password, }); return response.data; } catch (error: any) { @@ -35,8 +35,8 @@ export async function registerUser(email: string, password: string): Promise { try { const response = await axiosInstance.post("/auth/login", { - Email: email, - Password: password, + email: email, + password: password, }); return response.data; } catch (error: any) { diff --git a/frontend/app/(sidebar)/layout.tsx b/frontend/app/(sidebar)/layout.tsx index e097aaf..ad8999c 100644 --- a/frontend/app/(sidebar)/layout.tsx +++ b/frontend/app/(sidebar)/layout.tsx @@ -4,9 +4,6 @@ import { AppSidebar } from "@/components/sidebar/app-sidebar"; import { ThemeToggle } from "@/components/theme-toggle"; import { Separator } from "@/components/ui/separator"; import { SidebarInset, SidebarProvider, SidebarTrigger } from "@/components/ui/sidebar"; -import DynamicBreadcrumb from "./dynamic-breadcrumb"; -import { extractRoute } from "@/lib/utils"; -import { usePathname } from "next/navigation"; import { Toaster } from "@/components/ui/sonner"; import { useForm, FormProvider } from "react-hook-form"; import { APIProvider } from "@vis.gl/react-google-maps"; @@ -16,8 +13,7 @@ export default function AppLayout({ }: Readonly<{ children: React.ReactNode; }>) { - const pathname = usePathname(); - const currentPathname = extractRoute(pathname); + // const pathname = usePathname(); const form = useForm(); return ( @@ -31,7 +27,7 @@ export default function AppLayout({ - + {/* */} {children}