diff --git a/src/components/TileBasic/index.js b/src/components/TileBasic/index.js
new file mode 100644
index 0000000..026850a
--- /dev/null
+++ b/src/components/TileBasic/index.js
@@ -0,0 +1,64 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import MDBox from 'components/MDBox';
+import { makeStyles } from '@mui/styles';
+import { Grid } from '@mui/material';
+
+const useStyles = makeStyles({
+ centerContent: {
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ flexDirection: 'column',
+ marginLeft: '20px',
+ boxShadow: '0px 4px 24px rgba(0, 0, 0, 0.05)',
+ borderRadius: '8px',
+ marginBottom: '20px',
+ '&:hover': {
+ backgroundColor: '#007AFF',
+ cursor: 'default',
+ color: 'white',
+ '& svg': {
+ '& path': {
+ fill: '#fff'
+ }
+ }
+ }
+ }
+});
+
+export default function TileBasic({ tiles }) {
+ const classes = useStyles();
+ return (
+ <>
+
+
+ {tiles &&
+ tiles.map((tile) => (
+ <>
+
+ white.main,
+ padding: '32px 40px'
+ }}
+ >
+ {tile.icon}
+ {tile.name}
+
+
+ >
+ ))}
+
+
+ >
+ );
+}
+
+TileBasic.propTypes = {
+ tiles: PropTypes.any
+};
diff --git a/src/components/TileComponent/TileGrid.js b/src/components/TileComponent/TileGrid.js
index 73d3ddc..a1265e7 100644
--- a/src/components/TileComponent/TileGrid.js
+++ b/src/components/TileComponent/TileGrid.js
@@ -1,8 +1,8 @@
import React, { useEffect, useRef } from 'react';
+import PropTypes from 'prop-types';
import Box from '@mui/material/Box';
import { makeStyles } from '@mui/styles';
-import SetupIcon from 'assets/images/SetupIcon';
import Tile from './Tile';
const useStyles = makeStyles({
@@ -20,11 +20,7 @@ const useStyles = makeStyles({
}
});
-
-// TODO: When using this component, please use props here instead.
-// The below code was left as a sample for testing.
-// Please also remove this comment when the above are complete
-export default function TileGrid() {
+export default function TileGrid({ tiles }) {
const classes = useStyles();
// to make the grid adjust its elemnts:
const myContainer = useRef(null);
@@ -37,42 +33,22 @@ export default function TileGrid() {
});
return (
-
- {' '}
-
-
-
- {' '}
-
-
-
- {' '}
-
-
-
- {' '}
-
-
-
- {' '}
-
-
-
- {' '}
-
-
-
- {' '}
-
-
-
- {' '}
-
-
-
- {' '}
-
-
+ {tiles &&
+ tiles.map((tile) => (
+
+ {' '}
+ {tile.icon}
+
+ ))}
);
}
+
+TileGrid.propTypes = {
+ // tiles: PropTypes.object({
+ // name: PropTypes.string.isRequired,
+ // path: PropTypes.string.isRequired,
+ // icon: PropTypes.any
+ // })
+ tiles: PropTypes.any
+};
diff --git a/src/pages/warehouse/index.js b/src/pages/warehouse/index.js
new file mode 100644
index 0000000..5a24340
--- /dev/null
+++ b/src/pages/warehouse/index.js
@@ -0,0 +1,80 @@
+import MDBox from 'components/MDBox';
+import DashboardNavbar from 'components/DashboardNavbar';
+import Footer from 'components/Footer';
+import DashboardLayout from 'layouts/DashboardLayout';
+import SetupIcon from 'assets/images/SetupIcon';
+import TileBasic from 'components/TileBasic';
+import { makeStyles } from '@mui/styles';
+
+const useStyles = makeStyles({
+ iconSize: {
+ width: '50%',
+ height: '50%',
+ marginBottom: '10px'
+ },
+ margin: {
+ marginBottom: '20px'
+ }
+});
+
+function WarehouseScreen() {
+ const classes = useStyles();
+ const data = [
+ {
+ name: 'Warehouse 1',
+ path: '/',
+ icon:
+ },
+ {
+ name: 'Warehouse 1',
+ path: '/',
+ icon:
+ },
+ {
+ name: 'Warehouse 1',
+ path: '/',
+ icon:
+ },
+ {
+ name: 'Warehouse 1',
+ path: '/',
+ icon:
+ },
+ {
+ name: 'Warehouse 1',
+ path: '/',
+ icon:
+ },
+ {
+ name: 'Warehouse 1',
+ path: '/',
+ icon:
+ },
+ {
+ name: 'Warehouse 1',
+ path: '/',
+ icon:
+ },
+ {
+ name: 'Warehouse 1',
+ path: '/',
+ icon:
+ },
+ {
+ name: 'Warehouse 1',
+ path: '/',
+ icon:
+ }
+ ];
+
+ return (
+
+
+
+
+
+
+
+ );
+}
+export default WarehouseScreen;
diff --git a/src/routes/index.js b/src/routes/index.js
index 8254b43..3df40e4 100644
--- a/src/routes/index.js
+++ b/src/routes/index.js
@@ -44,6 +44,7 @@ import LoginScreen from 'pages/authentication';
// @mui icons
import Icon from '@mui/material/Icon';
+import WarehouseScreen from 'pages/warehouse';
// Images
// import profilePicture from 'assets/images/team-3.jpg';
@@ -84,6 +85,20 @@ const protectedRoutes = [
key: 'dashboard',
route: '/dashboard',
component:
+ }
+ ]
+ },
+ {
+ type: 'collapse',
+ name: 'Setup',
+ key: 'Setup',
+ icon: dashboard,
+ collapse: [
+ {
+ name: 'Warehouse Design',
+ key: 'warehouse',
+ route: '/warehouse',
+ component:
}
]
}