add shipment forms and start contract from form
This commit is contained in:
@@ -10,6 +10,8 @@ import Productors from "@/pages/Productors";
|
||||
import Products from "@/pages/Products";
|
||||
import Templates from "@/pages/Templates";
|
||||
import Users from "@/pages/Users";
|
||||
import Shipments from "./pages/Shipments";
|
||||
import { Contract } from "./pages/Contract";
|
||||
// import { CreateForms } from "@/pages/Forms/CreateForm";
|
||||
|
||||
export const router = createBrowserRouter([
|
||||
@@ -20,23 +22,28 @@ export const router = createBrowserRouter([
|
||||
children: [
|
||||
{ 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: "/form/:id", Component: ReadForm },
|
||||
{
|
||||
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},
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user