mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2024-11-16 22:29:24 +08:00
Fixed error prompt in dashboard
This commit is contained in:
parent
825c10d6a7
commit
9d6a1ec2ca
1 changed files with 14 additions and 12 deletions
|
@ -51,19 +51,21 @@ export default function Dashboard() {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (logs.error || products.error || lowest_stock_product.isError) {
|
if (logs.isError || products.isError || lowest_stock_product.isError) {
|
||||||
<div>
|
return (
|
||||||
<LoginChecker />
|
<div>
|
||||||
<div style={styles.flex_row}>
|
<LoginChecker />
|
||||||
<HomeIcon size={64} color="white" />
|
<div style={styles.flex_row}>
|
||||||
<p style={{ ...styles.text_white, ...styles.text_XL }}>Dashboard</p>
|
<HomeIcon size={64} color="white" />
|
||||||
|
<p style={{ ...styles.text_white, ...styles.text_XL }}>Dashboard</p>
|
||||||
|
</div>
|
||||||
|
<div style={{ ...styles.content_column, ...{ alignItems: "center" } }}>
|
||||||
|
<p style={{ ...styles.text_red, ...styles.text_L }}>
|
||||||
|
Error loading dashboard
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ ...styles.content_column, ...{ alignItems: "center" } }}>
|
);
|
||||||
<p style={{ ...styles.text_red, ...styles.text_L }}>
|
|
||||||
Error loading dashboard
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>;
|
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in a new issue