-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Task Description
Create a persistent shopping cart that displays added medicines, calculates totals, and allows item management.
Requirements:
- Cart Component (
Cart.tsx) with:- List of added medicines (name, price, quantity)
- Total price calculation
- Remove item functionality
- Clear all button
- Cart State Management using React Context or Zustand
- Cart Icon in header with item count badge
Acceptance Criteria:
- Cart displays all added medicines with correct quantities
- Total price updates automatically
- Items can be removed individually or all at once
- Cart icon shows real-time item count
Technical Details:
- File:
src/components/Cart/Cart.tsx - State Management: React Context (
src/context/CartContext.tsx) - Icons: Cart icon with counter badge
Reactions are currently unavailable