diff --git a/README.md b/README.md
index 5ca0c37..9049ec6 100644
--- a/README.md
+++ b/README.md
@@ -19,11 +19,25 @@ Step and Stride is a premier online shoe store built using React, offering a wid
- **Frontend**: Built with React, ensuring a smooth and dynamic user experience.
- **Styling**: CSS-in-JS for easy and maintainable styling solutions.
-- **Payment Processing**: Integrated secure payment processing for a seamless checkout experience.
-- **Order Tracking**: Real-time order tracking functionality to keep customers informed.
-
-## Contact Us
-
-If you have any questions or need assistance, feel free to reach out to our customer support team at support@stepandstride.com.
-
-Happy Shoe Shopping at Step and Stride!
\ No newline at end of file
+ ## In Progress
+ - **Payment Processing**: Integrated secure payment processing for a seamless checkout experience.
+ - **Order Tracking**: Real-time order tracking functionality to keep customers informed.
+## Getting started
+ - Clone this repository to your local machine.
+ - Run `npm install` to install the necessary dependencies.
+ - Start the development server with `npm start`.
+ - Run json server with `npm run start-server`
+
+## API Endpoints
+ - `POST /users` :Create a new user
+ - `GET /users/:id` :Retrieve a specific user
+ - `GET /sneakers/:id` :Retrieve a specific item
+ - `POST /orders` :Create a new order
+ - `GET /orders/:id` :Retrieve a specific order
+
+## Contributing
+ We welcome contributions from the community to enhance the Step and Stride Shoe Store. If you'd like to contribute, please fork this repository, make your changes, and submit a pull request.
+## License
+ This project is licensed under the MIT License - see the [LICENSE]('./LICENSE') file for details.
+
+ Happy Stepping!
\ No newline at end of file
diff --git a/db.json b/db.json
index 65c41ec..a4d57c3 100644
--- a/db.json
+++ b/db.json
@@ -11,42 +11,6 @@
"email": "leon@gmail.com",
"password": "1234",
"id": 2
- },
- {
- "name": "leon",
- "email": "leon@gmail.com",
- "password": "1234",
- "id": 3
- },
- {
- "email": "leon@gmail.com",
- "password": "1234",
- "id": 4
- },
- {
- "name": "joel",
- "email": "joelmaina@gmail.com",
- "password": "maina560",
- "id": 5
- },
- {
- "name": "joel",
- "email": "joelmaina@gmail.com",
- "password": "maina560",
- "id": 6
- },
- {
- "name": "joel",
- "email": "joelmaina@gmail.com",
- "password": "maina560",
- "id": 7
- },
- {
- "name": "joel",
- "email": "joelmaina@gmail.com",
- "password": "maina560",
- "id": 8
-
}
],
"sneakers": [
diff --git a/src/App.js b/src/App.js
index 361df55..33756ac 100644
--- a/src/App.js
+++ b/src/App.js
@@ -12,9 +12,10 @@ import Contact from './components/Contact';
import ShoppingCart from './components/cart';
import Checkout from './components/Checkout';
import { useCart } from './components/CartContext';
+import OrderTrack from './components/OrderTrack';
function App() {
- const { cart, addToCart, removeFromCart } = useCart();
+ const { cart,setCart, addToCart, removeFromCart } = useCart();
useEffect(() => {
document.title = 'Step & Stride';
}, []);
@@ -27,8 +28,9 @@ function App() {
} />
} />
} />
- } />
+ } />
} />
+ } />
diff --git a/src/components/CartContext.js b/src/components/CartContext.js
index d9df201..6f9b0d3 100644
--- a/src/components/CartContext.js
+++ b/src/components/CartContext.js
@@ -19,7 +19,7 @@ const removeFromCart = (itemId) => {
setCart((prevCart) => prevCart.filter(item => item.id !== itemId));
};
return (
-
+
{children}
);
diff --git a/src/components/CartItem.js b/src/components/CartItem.js
index 8937669..ed6739d 100644
--- a/src/components/CartItem.js
+++ b/src/components/CartItem.js
@@ -1,28 +1,27 @@
-
-import React from 'react';
-export default function CartItem ({item, handleDelete}){
- return(
-
-
-
-
-
-
{item.name}
-
- {item.gender}
-
-
-
-
${item.price}
-
-
-
-
-
-
-
-
- )
-
-
-}
\ No newline at end of file
+
+import React from 'react';
+
+export default function CartItem({ item, handleDelete, handleIncrease, handleDecrease }) {
+ return (
+