diff --git a/src/Components/ProductsPage/ViewManager.tsx b/src/Components/ProductsPage/ViewManager.tsx index 0ef4659..da535a6 100644 --- a/src/Components/ProductsPage/ViewManager.tsx +++ b/src/Components/ProductsPage/ViewManager.tsx @@ -4,11 +4,21 @@ import { Switch } from "@mui/material"; import TableView from "../../Components/ProductsPage/TableView/TableView"; import BlobView from "../../Components/ProductsPage/BlobView/BlobView"; import { ProductList } from "../../Interfaces/Interfaces"; +import styles from "../../styles"; export interface props {} export default function ViewManager(props: ProductList) { - const [tableView, toggleTableView] = useState(false); + const [tableView, toggleTableView] = useState(true); + if (props.Products.length === 0) { + return ( +
+ No products yet. Add one! +
+Dashboard
Total Products - +
2546 Unique Items - -
In inventory - +
Current Session - +
Added - +
254
Removed - +
118
Low Stock - +
Canned Pagmamahal - -
In Stock: 3 - +
Zidane's Water - -
Added 02/17/2023 - +
Recent
+Transactions - +
Kopiko Blanca - -
Added: 96
+Removed: 105 - -
02/17/2023 - +
-Zidane's Water - -
Added: 49
+Removed: 24 - -
02/17/2023 - +
-Dan's Beefed Corn - -
Added: 32
+Removed: 64 - -
02/17/2023 - +
Canned Pagmamahal - +
Added: 0
+Removed: 60 - -
02/17/2023 - +
diff --git a/src/Routes/Login/Login.tsx b/src/Routes/Login/Login.tsx index bd62753..e2ace97 100644 --- a/src/Routes/Login/Login.tsx +++ b/src/Routes/Login/Login.tsx @@ -36,9 +36,9 @@ export default function Login() { >Login to Ivy - +
Username
diff --git a/src/Routes/Logs/Logs.tsx b/src/Routes/Logs/Logs.tsx index 4bd49fe..5ef42a2 100644 --- a/src/Routes/Logs/Logs.tsx +++ b/src/Routes/Logs/Logs.tsx @@ -18,7 +18,7 @@ export default function Logs() {Logs
Add Product
Individual Product View for id {id} - +
Loading product... - +
++ Individual Product View for id {id} +
++ Error loading product +
Product View
++ Product Name: {product.name} +
++ Date Added: {product.date_added} +
+Products - +
Loading products... - +
Products - +
Error loading products - +
Products
Inventory