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:
52
src/pages/setupInventory/index.js
Normal file
52
src/pages/setupInventory/index.js
Normal 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;
|
||||
Reference in New Issue
Block a user