Fixed products page error and loading status

This commit is contained in:
keannu125 2023-03-06 20:45:56 +08:00
parent 9065274a18
commit 3ac7785c3c

View file

@ -30,8 +30,10 @@ export default function Products() {
</h1>
</div>
</div>
</div>
<div style={{ ...styles.content_column, ...{ alignItems: "center" } }}>
<h1 style={{ ...styles.text_white, ...styles.text_L }}>
Loading Products...
Loading products...
</h1>
</div>
</div>
@ -48,6 +50,8 @@ export default function Products() {
</h1>
</div>
</div>
</div>
<div style={{ ...styles.content_column, ...{ alignItems: "center" } }}>
<h1 style={{ ...styles.text_red, ...styles.text_L }}>
Error loading products
</h1>