Commit Graph
31 Commits
Author SHA1 Message Date
Leon Xu fc3f5551a6 fix: change from id to uid 2022-05-07 15:37:35 -07:00
Leon Xu 5b7a0aadd2 doc: add database to payment component 2022-05-07 15:31:54 -07:00
Leon Xu d4bb3b81fa file: initialize Orders component and Order component along with its stylesheet 2022-05-07 15:25:01 -07:00
Leon Xu 07cfc6efc2 doc: dispatch EMPTY_BASKET type 2022-05-07 15:12:52 -07:00
Leon Xu 1eac6e687c doc: add axios, useEffect, useState, Link, and useHistory to payment component 2022-05-07 14:24:39 -07:00
Leon Xu 1d023fd69b doc: add buy now button with conditional rendering and error conditional rendering 2022-05-07 14:13:19 -07:00
Leon Xu 2010f9423e doc: remove object inside CurrencyFormat 2022-05-07 14:08:59 -07:00
Leon Xu 8b67180daa doc: add CurrentFormat, getBasketTotal and move payment stylesheet to the bottom 2022-05-07 14:08:03 -07:00
Leon Xu 475d51c2a1 doc & fix: add setDisabled and setError to handleChange method and fix handleError to setError 2022-05-07 14:04:10 -07:00
Leon Xu 5ac0d48ec7 doc: add useState for handleError and setDisabled 2022-05-07 14:02:49 -07:00
Leon Xu 7b96e90ea8 doc: add CardElement, useElements, useStripe from react-stripe-js and handleChange and handleSubmit method 2022-05-07 14:02:02 -07:00
Leon Xu f2ebe6e580 doc: add checkout items link 2022-05-07 13:59:27 -07:00
Leon Xu 79ce82df05 doc: add styles to payment stylesheet 2022-05-07 13:50:33 -07:00
Leon Xu 94ecbadbf3 doc: update payment component 2022-05-07 13:49:40 -07:00
Leon Xu 27e3c294a2 file: create Payment component along with its stylesheet 2022-05-07 13:37:07 -07:00
Leon Xu c555899892 doc: add payment route on checkout button 2022-05-07 13:34:37 -07:00
Leon Xu 1d4b8f215c doc: add useHistory on react-router-dom 2022-05-07 13:33:52 -07:00
Leon Xu 340ef629a8 fix: change second conditional rendering 2022-05-07 13:27:37 -07:00
Leon Xu e974e40104 doc: add user to useStateValue and conditional rendering 2022-05-07 13:26:45 -07:00
Leon Xu 0253490cd3 doc: add removeFromBasket function 2022-05-07 12:13:40 -07:00
Leon Xu 135883ec9c doc: style checkOutProduct component 2022-05-05 21:51:25 -07:00
Leon Xu 58e4bea186 doc: add useStateValue along with CheckoutProduct component 2022-05-05 21:47:22 -07:00
Leon Xu 642b6db220 doc: add contents similar to product component in checkoutProduct component 2022-05-05 21:44:50 -07:00
Leon Xu 02b909ae5e file: create CheckoutProduct component along with its stylesheet 2022-05-05 21:39:33 -07:00
Leon Xu 7c6ee1d588 doc: add useStateValue and getBasketTotal 2022-05-05 21:38:18 -07:00
Leon Xu fa9e1acda1 doc: add style to subtotal input and subtotal button 2022-05-05 21:19:51 -07:00
Leon Xu c379b1ec72 doc: add CurrencyFormatter to Subtotal component along with its style 2022-05-05 21:17:07 -07:00
Leon Xu 1c48a6260a doc: add subtotal component 2022-05-05 21:16:19 -07:00
Leon Xu 64da4e8f8a file: create Subtotal component with its own style 2022-05-05 21:14:36 -07:00
Leon Xu 1d7386db3f doc: add checkout ads and texts with its styles 2022-05-05 21:13:51 -07:00
Leon Xu 9a0a1aa344 file: create Checkout component along with its stylesheet 2022-05-05 20:51:49 -07:00