Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JunYuHuang committed Apr 10, 2023
1 parent fc37810 commit 77d640d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is a simple E-Commerce site made with React and TailwindCSS. Your job is to
1. [Sort Products by Price and Release Date](https://github.com/developer-job-simulation/react-ecommerce/issues/1)
1. [Cart Persistence on Refresh](https://github.com/developer-job-simulation/react-ecommerce/issues/2)
1. [Add Product Filters Functionality](https://github.com/developer-job-simulation/react-ecommerce/issues/3)
1. [Product Fetch is Causing Infinite Loop](https://github.com/developer-job-simulation/react-ecommerce/issues/4)
1. ~~[Product Fetch is Causing Infinite Loop](https://github.com/developer-job-simulation/react-ecommerce/issues/4)~~
1. [Need to display 'Empty Cart' When Cart is Empty on Cart Page](https://github.com/developer-job-simulation/react-ecommerce/issues/5)
1. [Update Cart in Nav with Cart Size](https://github.com/developer-job-simulation/react-ecommerce/issues/6)
1. [Cart not closing when User Clicks Gray Region](https://github.com/developer-job-simulation/react-ecommerce/issues/7)
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Components/ProductTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function ProductTable({ cart, updateCart }) {
setProducts(body);
};
fetchProducts();
});
}, []);

return (
<div className="bg-white">
Expand Down
12 changes: 12 additions & 0 deletions todo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- - Issue #1 Todos
- [ ] On Click of Sort by Price, products should be sorted by Price.
- [ ] On Click of Sort by Newest, products should be sorted by Release Date.
- Issue #2 Todos
- [ ] something
- Issue #3 Todos
- something -->

- Issue #4 Todos
- [x] Fix the effect hook to stop infinite loop

0 comments on commit 77d640d

Please sign in to comment.