fix: update typos and remove breadcrumb

This commit is contained in:
Sosokker 2025-04-04 15:25:55 +07:00
parent 3ee9b92ce7
commit b7e3e0a164
2 changed files with 6 additions and 10 deletions

View File

@ -17,8 +17,8 @@ export interface RegisterResponse {
export async function registerUser(email: string, password: string): Promise<RegisterResponse> {
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<Reg
export async function loginUser(email: string, password: string): Promise<LoginResponse> {
try {
const response = await axiosInstance.post("/auth/login", {
Email: email,
Password: password,
email: email,
password: password,
});
return response.data;
} catch (error: any) {

View File

@ -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({
<SidebarTrigger className="-ml-1" />
<ThemeToggle />
<Separator orientation="vertical" className="mr-2 h-4" />
<DynamicBreadcrumb pathname={currentPathname} />
{/* <DynamicBreadcrumb pathname={currentPathname} /> */}
</div>
</header>
{children}