Prompt if products are empty in inventory page now shows properly

This commit is contained in:
keannu125 2023-03-06 22:35:53 +08:00
parent e4c7c8fc66
commit 10a5cf400c

View file

@ -7,7 +7,13 @@ import StockRenderer from "../StockRenderer/StockRenderer";
export default function RowRenderer(props: ProductList) {
if (props.Products.length === 0) {
return (
<div style={{ ...styles.content_column, ...{ alignItems: "center" } }}>
<div
style={{
alignItems: "center",
justifyContent: "center",
marginLeft: 12,
}}
>
<p style={{ ...styles.text_white, ...styles.text_L }}>
No products yet. Add one!
</p>