175 lines
4.4 KiB
JavaScript
175 lines
4.4 KiB
JavaScript
import { lazy } from 'react'
|
|
import { Route } from 'react-router-dom'
|
|
|
|
const FilamentStocks = lazy(
|
|
() => import('../components/Dashboard/Inventory/FilamentStocks.jsx')
|
|
)
|
|
const FilamentStockInfo = lazy(
|
|
() =>
|
|
import('../components/Dashboard/Inventory/FilamentStocks/FilamentStockInfo.jsx')
|
|
)
|
|
const PartStocks = lazy(
|
|
() => import('../components/Dashboard/Inventory/PartStocks.jsx')
|
|
)
|
|
const ProductStocks = lazy(
|
|
() => import('../components/Dashboard/Inventory/ProductStocks.jsx')
|
|
)
|
|
const ProductStockInfo = lazy(
|
|
() =>
|
|
import(
|
|
'../components/Dashboard/Inventory/ProductStocks/ProductStockInfo.jsx'
|
|
)
|
|
)
|
|
const PartStockInfo = lazy(
|
|
() => import('../components/Dashboard/Inventory/PartStocks/PartStockInfo.jsx')
|
|
)
|
|
const StockEvents = lazy(
|
|
() => import('../components/Dashboard/Inventory/StockEvents.jsx')
|
|
)
|
|
const StockAudits = lazy(
|
|
() => import('../components/Dashboard/Inventory/StockAudits.jsx')
|
|
)
|
|
const StockAuditInfo = lazy(
|
|
() =>
|
|
import('../components/Dashboard/Inventory/StockAudits/StockAuditInfo.jsx')
|
|
)
|
|
const PurchaseOrders = lazy(
|
|
() => import('../components/Dashboard/Inventory/PurchaseOrders.jsx')
|
|
)
|
|
const PurchaseOrderInfo = lazy(
|
|
() =>
|
|
import('../components/Dashboard/Inventory/PurchaseOrders/PurchaseOrderInfo.jsx')
|
|
)
|
|
const OrderItems = lazy(
|
|
() => import('../components/Dashboard/Inventory/OrderItems.jsx')
|
|
)
|
|
const OrderItemInfo = lazy(
|
|
() => import('../components/Dashboard/Inventory/OrderItems/OrderItemInfo.jsx')
|
|
)
|
|
const Shipments = lazy(
|
|
() => import('../components/Dashboard/Inventory/Shipments.jsx')
|
|
)
|
|
const ShipmentInfo = lazy(
|
|
() => import('../components/Dashboard/Inventory/Shipments/ShipmentInfo.jsx')
|
|
)
|
|
const InventoryOverview = lazy(
|
|
() => import('../components/Dashboard/Inventory/InventoryOverview.jsx')
|
|
)
|
|
const StockLocations = lazy(
|
|
() => import('../components/Dashboard/Inventory/StockLocations.jsx')
|
|
)
|
|
const StockLocationInfo = lazy(
|
|
() =>
|
|
import('../components/Dashboard/Inventory/StockLocations/StockLocationInfo.jsx')
|
|
)
|
|
const StockTransfers = lazy(
|
|
() => import('../components/Dashboard/Inventory/StockTransfers.jsx')
|
|
)
|
|
const StockTransferInfo = lazy(
|
|
() =>
|
|
import(
|
|
'../components/Dashboard/Inventory/StockTransfers/StockTransferInfo.jsx'
|
|
)
|
|
)
|
|
|
|
const InventoryRoutes = [
|
|
<Route
|
|
key='overview'
|
|
path='inventory/overview'
|
|
element={<InventoryOverview />}
|
|
/>,
|
|
<Route
|
|
key='filamentstocks'
|
|
path='inventory/filamentstocks'
|
|
element={<FilamentStocks />}
|
|
/>,
|
|
<Route
|
|
key='filamentstocks-info'
|
|
path='inventory/filamentstocks/info'
|
|
element={<FilamentStockInfo />}
|
|
/>,
|
|
<Route
|
|
key='partstocks'
|
|
path='inventory/partstocks'
|
|
element={<PartStocks />}
|
|
/>,
|
|
<Route
|
|
key='partstocks-info'
|
|
path='inventory/partstocks/info'
|
|
element={<PartStockInfo />}
|
|
/>,
|
|
<Route
|
|
key='productstocks'
|
|
path='inventory/productstocks'
|
|
element={<ProductStocks />}
|
|
/>,
|
|
<Route
|
|
key='productstocks-info'
|
|
path='inventory/productstocks/info'
|
|
element={<ProductStockInfo />}
|
|
/>,
|
|
<Route
|
|
key='stocklocations'
|
|
path='inventory/stocklocations'
|
|
element={<StockLocations />}
|
|
/>,
|
|
<Route
|
|
key='stocklocations-info'
|
|
path='inventory/stocklocations/info'
|
|
element={<StockLocationInfo />}
|
|
/>,
|
|
<Route
|
|
key='stocktransfers'
|
|
path='inventory/stocktransfers'
|
|
element={<StockTransfers />}
|
|
/>,
|
|
<Route
|
|
key='stocktransfers-info'
|
|
path='inventory/stocktransfers/info'
|
|
element={<StockTransferInfo />}
|
|
/>,
|
|
<Route
|
|
key='stockevents'
|
|
path='inventory/stockevents'
|
|
element={<StockEvents />}
|
|
/>,
|
|
<Route
|
|
key='stockaudits'
|
|
path='inventory/stockaudits'
|
|
element={<StockAudits />}
|
|
/>,
|
|
<Route
|
|
key='stockaudits-info'
|
|
path='inventory/stockaudits/info'
|
|
element={<StockAuditInfo />}
|
|
/>,
|
|
<Route
|
|
key='purchaseorders'
|
|
path='inventory/purchaseorders'
|
|
element={<PurchaseOrders />}
|
|
/>,
|
|
<Route
|
|
key='purchaseorders-info'
|
|
path='inventory/purchaseorders/info'
|
|
element={<PurchaseOrderInfo />}
|
|
/>,
|
|
<Route
|
|
key='orderitems'
|
|
path='inventory/orderitems'
|
|
element={<OrderItems />}
|
|
/>,
|
|
<Route
|
|
key='orderitems-info'
|
|
path='inventory/orderitems/info'
|
|
element={<OrderItemInfo />}
|
|
/>,
|
|
<Route key='shipments' path='inventory/shipments' element={<Shipments />} />,
|
|
<Route
|
|
key='shipments-info'
|
|
path='inventory/shipments/info'
|
|
element={<ShipmentInfo />}
|
|
/>
|
|
]
|
|
|
|
export default InventoryRoutes
|