mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2024-11-17 06:39:25 +08:00
Prompt if products are empty in inventory page now shows properly
This commit is contained in:
parent
e4c7c8fc66
commit
10a5cf400c
1 changed files with 7 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue