Skip to content

DrinksPage

Vin.ce edited this page Dec 8, 2024 · 1 revision

Overview

The DrinksPage component is used to display and manage drink items within the app. Similar to the EntreesPage, this component handles the rendering of available drink items and allows users to modify the quantities of selected drinks.

Key Features

  • Dynamic Drink List: Displays available drinks fetched from the API.
  • Quantity Management: Users can adjust the quantity of each drink.
  • Order Handling: Allows adding drinks to the cart or removing them based on quantity.

Usage

<DrinksPage user="customer" category="drinks" setSelectedCategory={setSelectedCategory} addComboToCart={addComboToCart} />

This component follows the same structure as EntreesPage but is focused on managing drinks and integrates seamlessly with the overall application flow.

Clone this wiki locally