From 94ecbadbf3e8340a51ce3f63c70d57b165368e7d Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Sat, 7 May 2022 13:49:40 -0700 Subject: [PATCH] doc: update payment component --- src/Checkout/Payment/Payment.js | 43 ++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/src/Checkout/Payment/Payment.js b/src/Checkout/Payment/Payment.js index 032a9ba..2c61693 100644 --- a/src/Checkout/Payment/Payment.js +++ b/src/Checkout/Payment/Payment.js @@ -1,8 +1,49 @@ import React from "react"; +import { useStateValue } from "../../redux/StateProvider"; + +import CheckoutProduct from "../CheckoutProduct"; import "./Payment.css"; function Payment() { - return
Payment
; + const [{ basket, user }, dispatch] = useStateValue(); + return ( +
+
+
+
+

Delivery Address

+
+
+

{user?.email}

+

123 React Lane

+

Los Angeles, CA

+
+
+
+
+

Review items and delivery

+
+
+ {basket.map((item) => ( + + ))} +
+
+
+
+

Payment Method

+
+
+
+
+
+ ); } export default Payment;