Polished empty inventory page

This commit is contained in:
Keannu Christian Bernasol 2023-03-06 22:41:40 +08:00
parent 10a5cf400c
commit 7b17576add
2 changed files with 34 additions and 15 deletions

View file

@ -5,21 +5,6 @@ import { TableBody, TableRow, TableCell } from "@mui/material";
import StockRenderer from "../StockRenderer/StockRenderer";
export default function RowRenderer(props: ProductList) {
if (props.Products.length === 0) {
return (
<div
style={{
alignItems: "center",
justifyContent: "center",
marginLeft: 12,
}}
>
<p style={{ ...styles.text_white, ...styles.text_L }}>
No products yet. Add one!
</p>
</div>
);
}
return (
<TableBody>
{props.Products.map((row) => (