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

View File

@ -4,9 +4,6 @@ import { AppSidebar } from "@/components/sidebar/app-sidebar";
import { ThemeToggle } from "@/components/theme-toggle"; import { ThemeToggle } from "@/components/theme-toggle";
import { Separator } from "@/components/ui/separator"; import { Separator } from "@/components/ui/separator";
import { SidebarInset, SidebarProvider, SidebarTrigger } from "@/components/ui/sidebar"; 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 { Toaster } from "@/components/ui/sonner";
import { useForm, FormProvider } from "react-hook-form"; import { useForm, FormProvider } from "react-hook-form";
import { APIProvider } from "@vis.gl/react-google-maps"; import { APIProvider } from "@vis.gl/react-google-maps";
@ -16,8 +13,7 @@ export default function AppLayout({
}: Readonly<{ }: Readonly<{
children: React.ReactNode; children: React.ReactNode;
}>) { }>) {
const pathname = usePathname(); // const pathname = usePathname();
const currentPathname = extractRoute(pathname);
const form = useForm(); const form = useForm();
return ( return (
@ -31,7 +27,7 @@ export default function AppLayout({
<SidebarTrigger className="-ml-1" /> <SidebarTrigger className="-ml-1" />
<ThemeToggle /> <ThemeToggle />
<Separator orientation="vertical" className="mr-2 h-4" /> <Separator orientation="vertical" className="mr-2 h-4" />
<DynamicBreadcrumb pathname={currentPathname} /> {/* <DynamicBreadcrumb pathname={currentPathname} /> */}
</div> </div>
</header> </header>
{children} {children}