mirror of
https://github.com/ForFarmTeam/ForFarm.git
synced 2025-12-18 13:34:08 +01:00
fix: update typos and remove breadcrumb
This commit is contained in:
parent
3ee9b92ce7
commit
b7e3e0a164
@ -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) {
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user