Skip to content
Snippets Groups Projects

Finalisation du panier

Merged Princelle Maxime requested to merge develop into main
Viewing commit 0e22108b
Show latest version
8 files
+ 205
166
Preferences
Compare changes
Files
8
+ 20
0
import React from "react";
import {Product} from "../model/product";
export default React.createContext({
products : [
new Product({name: "Fanta", category: "Boissons", price: 0.5, quantity: 50}),
// new Product({name: "Fanta", category: "Boissons", price: "0,50€", quantity: "50"}),
// new Product({name: "Ice Tea", category: "Boissons", price: "0,50€", quantity: "50"}),
// new Product({name: "Eau", category: "Boissons", price: "0,50€", quantity: "50"}),
// new Product({name: "Eau gazeuse", category: "Boissons", price: "0,50€", quantity: "50"}),
// new Product({name: "Sandwich", category: "Manger", price: "2€", quantity: "30"}),
// new Product({name: "Pizza", category: "Manger", price: "2€", quantity: "20"}),
// new Product({name: "Baguettine", category: "Manger", price: "1,50€", quantity: "20"}),
// new Product({name: "Wrap", category: "Manger", price: "1,50€", quantity: "10"}),
// new Product({name: "Donut", category: "Dessert", price: "1€", quantity: "30"})
],
cart: [new Product({name: "Fanta", category: "Boissons", price: 0.5, quantity: 50})],
totalPrice : 0
});
\ No newline at end of file