mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2025-05-12 09:31:07 +08:00
Polished empty inventory page
This commit is contained in:
parent
10a5cf400c
commit
7b17576add
2 changed files with 34 additions and 15 deletions
|
@ -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) => (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue