* create warehouse * edit warehouse changes * Update: linted and formatted * add warehouse button * user access changes * basic table component changes * Updated: eslint errors * basic table component changes * update: linted * add New Product form api integrate * add Inventory changes * policies change * add validation for widget * Fixed: Image upload component * Updated: Custom styling inputs Co-authored-by: [Diksha] <[diksha39511@gmail.com]> Co-authored-by: Llewellyn Dsouza <lledsouza2209@gmail.com>
65 lines
1.9 KiB
JavaScript
65 lines
1.9 KiB
JavaScript
import MDBox from 'components/MDBox';
|
|
import DashboardNavbar from 'components/DashboardNavbar';
|
|
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';
|
|
import MDButton from 'components/Button';
|
|
import { useNavigate } from 'react-router-dom';
|
|
|
|
function SetupInventory()
|
|
{
|
|
const navigate = useNavigate();
|
|
|
|
const tiles = [
|
|
{
|
|
name: 'Raw Material',
|
|
path: { update: '/', addNew: '/', cycleCount: '/', list: '/' },
|
|
icon: <RawMaterialIcon />
|
|
},
|
|
{
|
|
name: 'Products',
|
|
path: {
|
|
update: '/',
|
|
addNew: '/setup/inventory/product/add-new-product',
|
|
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>
|
|
<MDButton sx={{ ml: 3 }} color="primary" onClick={() => navigate('/setup/inventory/inventory-new')}>
|
|
+ Add new
|
|
</MDButton>
|
|
</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>
|
|
</DashboardLayout>
|
|
);
|
|
}
|
|
export default SetupInventory;
|