Skip to content

Commit

Permalink
cart page opened
Browse files Browse the repository at this point in the history
  • Loading branch information
shohan-pherones committed Apr 7, 2023
1 parent b66e92a commit f890f61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pages/cart.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const CartPage = () => {
return <div>CartPage</div>;
};

export default CartPage;
2 changes: 1 addition & 1 deletion pages/products/[productId].js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const ProductDetails = ({ product }) => {
</div>
<Link
onClick={() => dispatch(addToCart({ ...product, quantity }))}
href="/"
href="/cart"
className="bg-cyan-500 text-center py-3 text-white text-xl font-medium hover:bg-cyan-600 duration-300 mt-5"
>
Add to Cart
Expand Down

0 comments on commit f890f61

Please sign in to comment.