Initial commit - restaurant dashboard
This commit is contained in:
@@ -2,8 +2,8 @@ import React, { useState, useEffect } from 'react';
|
||||
import { Box, useTheme, useMediaQuery } from '@mui/material';
|
||||
import KitchPlusAppBar from '../AppBar';
|
||||
import Sidebar from '../SideHome';
|
||||
import ProductEntry from './ProductEntry';
|
||||
import TableView from './TableView';
|
||||
import ProductEntry from './contect/ProductEntry';
|
||||
import TableView from './contect/TableView';
|
||||
|
||||
const drawerWidth = 230;
|
||||
|
||||
@@ -53,9 +53,9 @@ const Inventory = () => {
|
||||
status: newProduct.consumptionStatus ? 'Published' : 'Draft',
|
||||
expiration: newProduct.expirationDate
|
||||
? `${Math.ceil(
|
||||
(new Date(newProduct.expirationDate) - new Date()) /
|
||||
(1000 * 60 * 60 * 24)
|
||||
)} Days Left`
|
||||
(new Date(newProduct.expirationDate) - new Date()) /
|
||||
(1000 * 60 * 60 * 24)
|
||||
)} Days Left`
|
||||
: 'N/A',
|
||||
};
|
||||
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ const initialProducts = [
|
||||
|
||||
const InventoryTablePage = () => {
|
||||
const [products, setProducts] = useState(initialProducts);
|
||||
|
||||
|
||||
const handleAddNewProduct = () => {
|
||||
alert('Navigate to Add Product page or open form here');
|
||||
};
|
||||
+3
-3
@@ -416,9 +416,9 @@ const ProductEntry = ({ onAdd, onShowTable }) => {
|
||||
color: theme.palette.primary.main,
|
||||
borderColor: theme.palette.primary.main,
|
||||
'&:hover': {
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
color: '#fff',
|
||||
borderColor: theme.palette.primary.dark,
|
||||
backgroundColor: '#FFECE0',
|
||||
color: theme.palette.primary.main,
|
||||
borderColor: '#FFECE0',
|
||||
},
|
||||
}}
|
||||
>
|
||||
Reference in New Issue
Block a user