Replace entire repo content with kottgard-production-v1.1.zip (for shahikitchen-prod repo)
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
import type { OrderLine, NewOrderLine } from '../shared/order-line';
|
||||
|
||||
export type CartItem = OrderLine;
|
||||
export type NewCartItem = NewOrderLine;
|
||||
|
||||
export interface CartState {
|
||||
items: CartItem[];
|
||||
isOpen: boolean;
|
||||
}
|
||||
|
||||
export type CartAction =
|
||||
| { type: 'ADD_ITEM'; payload: NewCartItem }
|
||||
| { type: 'REMOVE_ITEM'; payload: string }
|
||||
| { type: 'UPDATE_QUANTITY'; payload: { id: string; quantity: number } }
|
||||
| { type: 'CLEAR_CART' }
|
||||
| { type: 'TOGGLE_CART' }
|
||||
| { type: 'OPEN_CART' }
|
||||
| { type: 'CLOSE_CART' }
|
||||
| { type: 'RESTORE_ITEMS'; payload: CartItem[] };
|
||||
Reference in New Issue
Block a user