add prettier code formater

This commit is contained in:
2026-02-15 11:32:30 +01:00
parent 11b3a926d2
commit 627ddfc464
61 changed files with 7471 additions and 7312 deletions

View File

@@ -1,6 +1,4 @@
import {
createBrowserRouter,
} from "react-router";
import { createBrowserRouter } from "react-router";
import Root from "@/root";
import { Home } from "@/pages/Home";
@@ -14,35 +12,36 @@ import { Contract } from "./pages/Contract";
import { NotFound } from "./pages/NotFound";
export const router = createBrowserRouter([
{
path: "/",
Component: Root,
errorElement: <NotFound />,
children: [
{ index: true, Component: Home },
{ path: "/forms", Component: Forms },
{
path: "/dashboard", Component: Dashboard,
{
path: "/",
Component: Root,
errorElement: <NotFound />,
children: [
{ path: "productors", Component: Productors },
{ path: "productors/create", Component: Productors },
{ path: "productors/:id/edit", Component: Productors },
{ path: "products", Component: Products },
{ path: "products/create", Component: Products },
{ path: "products/:id/edit", Component: Products },
// { path: "templates", Component: Templates },
{ path: "users", Component: Users },
{ path: "users/create", Component: Users },
{ path: "users/:id/edit", Component: Users },
{ path: "forms", Component: Forms },
{ path: "forms/:id/edit", Component: Forms },
{ path: "forms/create", Component: Forms },
{ path: "shipments", Component: Shipments },
{ path: "shipments/:id/edit", Component: Shipments },
{ path: "shipments/create", Component: Shipments },
]
},
{ path: "/form/:id", Component: Contract},
],
},
{ index: true, Component: Home },
{ path: "/forms", Component: Forms },
{
path: "/dashboard",
Component: Dashboard,
children: [
{ path: "productors", Component: Productors },
{ path: "productors/create", Component: Productors },
{ path: "productors/:id/edit", Component: Productors },
{ path: "products", Component: Products },
{ path: "products/create", Component: Products },
{ path: "products/:id/edit", Component: Products },
// { path: "templates", Component: Templates },
{ path: "users", Component: Users },
{ path: "users/create", Component: Users },
{ path: "users/:id/edit", Component: Users },
{ path: "forms", Component: Forms },
{ path: "forms/:id/edit", Component: Forms },
{ path: "forms/create", Component: Forms },
{ path: "shipments", Component: Shipments },
{ path: "shipments/:id/edit", Component: Shipments },
{ path: "shipments/create", Component: Shipments },
],
},
{ path: "/form/:id", Component: Contract },
],
},
]);