Feat/wms 49 (#45)

* Added: inventory home route
* Deleted: extra file
* Updated: linted
* Fixed: Tilegrid for tile component
* Integrated: tile component
* Fixed: routes
* Updated: Setup page order
* Added: redirect to inventory
* Fixed: add new inventory redirect
* Udpate: restructured code

Co-authored-by: Llewellyn D'souza <lledsouza2209@gmail.com>
This commit is contained in:
bluestreamlds
2022-02-04 15:36:54 +05:30
committed by GitHub
parent 6561755cb3
commit 1cc9a95e9f
7 changed files with 56 additions and 155 deletions

View File

@@ -0,0 +1,52 @@
import MDBox from 'components/MDBox';
import DashboardNavbar from 'components/DashboardNavbar';
import Footer from 'components/Footer';
import DashboardLayout from 'layouts/DashboardLayout';
import EquipmentIcon from 'assets/images/EquimpmentIcon';
import ProductsIcon from 'assets/images/ProductsIcon';
import FleetIcon from 'assets/images/FleetIcon';
import RawMaterialIcon from 'assets/images/RawMaterialIcon';
import { Grid } from '@mui/material';
import Tile from 'components/TileComponent';
function SetupInventory() {
const tiles = [
{
name: 'Raw Material',
path: { update: '/', addNew: '/', cycleCount: '/', list: '/' },
icon: <RawMaterialIcon />
},
{
name: 'Products',
path: { update: '/', addNew: '/inventory-new', cycleCount: '/', list: '/' },
icon: <ProductsIcon />
},
{
name: 'Equipment',
path: { update: '/', addNew: '/', cycleCount: '/', list: '/' },
icon: <EquipmentIcon />
},
{
name: 'Fleet',
path: { update: '/', addNew: '/', cycleCount: '/', list: '/' },
icon: <FleetIcon />
}
];
return (
<DashboardLayout>
<DashboardNavbar />
<MDBox px={2} py={3}>
<Grid container spacing={2}>
{tiles &&
tiles.map((tile) => (
<Grid item xs={12} sm={6} md={tiles.length > 4 ? 4 : 6} key={tile.name}>
<Tile data={{ name: tile.name, path: tile.path }}>{tile.icon}</Tile>
</Grid>
))}
</Grid>
</MDBox>
<Footer />
</DashboardLayout>
);
}
export default SetupInventory;