Updated: all page routes

This commit is contained in:
Llewellyn Dsouza
2022-02-07 23:02:26 +05:30
parent 27ff4e17db
commit e2d720c044
5 changed files with 39 additions and 33 deletions

View File

@@ -9,12 +9,12 @@ function LabelingHome() {
const data = [ const data = [
{ {
name: 'Location Label', name: 'Location Label',
path: '/location-labeling', path: '/setup/labeling/location-labeling',
icon: <LocationLabelIcon color="#007AFF" /> icon: <LocationLabelIcon color="#007AFF" />
}, },
{ {
name: 'Widget Label', name: 'Widget Label',
path: '/', path: '/setup/labeling',
icon: <WidgetLabelIcon color="#007AFF" /> icon: <WidgetLabelIcon color="#007AFF" />
} }
]; ];

View File

@@ -11,22 +11,22 @@ function SetupHome() {
const data = [ const data = [
{ {
name: 'Warehouse', name: 'Warehouse',
path: '/warehouse', path: '/setup/warehouse',
icon: <WarehouseIcon width={96} height={96} color="#007AFF" /> icon: <WarehouseIcon width={96} height={96} color="#007AFF" />
}, },
{ {
name: 'Inventory', name: 'Inventory',
path: '/inventory', path: '/setup/inventory',
icon: <InventoryIcon width={96} height={96} color="#007AFF" /> icon: <InventoryIcon width={96} height={96} color="#007AFF" />
}, },
{ {
name: 'User & Access', name: 'User & Access',
path: '/', path: '/setup/users-access',
icon: <ProfileCircleIcon width={96} height={96} color="#007AFF" /> icon: <ProfileCircleIcon width={96} height={96} color="#007AFF" />
}, },
{ {
name: 'Labeling', name: 'Labeling',
path: '/labeling', path: '/setup/labeling',
icon: <LabelIcon width={96} height={96} color="#007AFF" /> icon: <LabelIcon width={96} height={96} color="#007AFF" />
} }
]; ];

View File

@@ -18,7 +18,7 @@ function SetupInventory() {
}, },
{ {
name: 'Products', name: 'Products',
path: { update: '/', addNew: '/inventory-new', cycleCount: '/', list: '/' }, path: { update: '/', addNew: '/setup/inventory/inventory-new', cycleCount: '/', list: '/' },
icon: <ProductsIcon /> icon: <ProductsIcon />
}, },
{ {

View File

@@ -28,7 +28,11 @@ function WarehouseScreen() {
return ( return (
<DashboardLayout> <DashboardLayout>
<DashboardNavbar> <DashboardNavbar>
<MDButton sx={{ ml: 3 }} color="primary" onClick={() => navigate('/warehouse-form')}> <MDButton
sx={{ ml: 3 }}
color="primary"
onClick={() => navigate('/setup/warehouse/add-warehouse')}
>
+ Add new + Add new
</MDButton> </MDButton>
</DashboardNavbar> </DashboardNavbar>
@@ -36,7 +40,7 @@ function WarehouseScreen() {
tiles={warehouseData.map((warehouse) => ({ tiles={warehouseData.map((warehouse) => ({
...warehouse, ...warehouse,
icon: <WarehouseIcon height={96} width={96} />, icon: <WarehouseIcon height={96} width={96} />,
path: '/edit-warehouse-design-form' path: '/setup/warehouse/edit-warehouse'
}))} }))}
/> />
<Footer /> <Footer />

View File

@@ -131,57 +131,59 @@ const protectedRoutes = [
{ {
name: 'Inventory Home', name: 'Inventory Home',
key: 'inventory', key: 'inventory',
route: '/inventory', route: '/setup/inventory',
component: <SetupInventory /> component: <SetupInventory />
}, },
{
name: 'Warehouse Design',
key: 'warehouse',
route: '/setup/warehouse',
component: <WarehouseScreen />
},
{ {
name: 'Inventory Definition', name: 'Inventory Definition',
key: 'inventory-new', key: 'inventory-new',
hide: true, hide: true,
route: '/inventory-new', route: '/setup/inventory/inventory-new',
component: <InventoryScreen /> component: <InventoryScreen />
}, },
{
name: 'Warehouse Design',
key: 'warehouse',
route: '/warehouse',
component: <WarehouseScreen />
},
{ {
name: 'Location Labeling', name: 'Location Labeling',
key: 'location-labeling', key: 'location-labeling',
route: '/location-labeling', hide: true,
route: '/setup/labeling/location-labeling',
component: <LocationLabelingScreen /> component: <LocationLabelingScreen />
}, },
{
name: 'Users & Access',
key: 'users-access',
route: '/setup/users-access',
component: <UserAccessScreen />
},
{ {
name: 'Labeling', name: 'Labeling',
key: 'labeling', key: 'labeling',
hide: true, route: '/setup/labeling',
route: '/labeling',
component: <LabelingHome /> component: <LabelingHome />
}, },
{ {
name: 'Warehouse Details Table', name: 'Warehouse Details Table',
key: 'warehouse-details-table', key: 'warehouse-details-table',
route: '/warehouse-details-table', hide: true,
route: '/setup/warehouse/warehouse-details-table',
component: <WarehouseDetailsTables /> component: <WarehouseDetailsTables />
}, },
{ {
name: 'Users & Access', name: 'Add Warehouse',
key: 'users-access', key: 'add-warehouse',
route: '/users-access', hide: true,
component: <UserAccessScreen /> route: '/setup/warehouse/add-warehouse',
},
{
name: 'Add Warehouse Details',
key: 'warehouse-form',
route: '/warehouse-form',
component: <NewWarehouseDetails /> component: <NewWarehouseDetails />
}, },
{ {
name: 'Edit Warehouse Details', name: 'Edit Warehouse',
key: 'warehouse-form', key: 'edit-warehouse',
route: '/edit-warehouse-design-form', route: '/setup/warehouse/edit-warehouse',
hide: true, hide: true,
component: <EditWarehouseDetails /> component: <EditWarehouseDetails />
} }