23a47a5c8b
fix: change from orders__error to orders__noitem
Leon Xu2022-05-07 16:00:46 -07:00
b2cf8e31cd
doc: add orders__error style
Leon Xu2022-05-07 16:00:30 -07:00
6b7c245f44
doc: add conditional rendering
Leon Xu2022-05-07 15:58:45 -07:00
24e9fce241
doc: add hideButton to hide the button in orders page
Leon Xu2022-05-07 15:58:34 -07:00
d04cae7c01
doc: add links to order page
Leon Xu2022-05-07 15:50:03 -07:00
298545c3d7
fix: change spelling error
Leon Xu2022-05-07 15:48:01 -07:00
87459fa762
doc: add styles to order stylesheet
Leon Xu2022-05-07 15:46:35 -07:00
a7e7f90975
doc: add moment, CheckoutProduct and CurrencyFormat
Leon Xu2022-05-07 15:45:44 -07:00
2bd6b8c44d
doc: add styles to orders stylesheet
Leon Xu2022-05-07 15:44:29 -07:00
76cb314096
doc: add useStateValue, db, and classes
Leon Xu2022-05-07 15:43:48 -07:00
fc3f5551a6
fix: change from id to uid
Leon Xu2022-05-07 15:37:35 -07:00
5b7a0aadd2
doc: add database to payment component
Leon Xu2022-05-07 15:31:54 -07:00
aabbe3a95c
doc: add header to order route
Leon Xu2022-05-07 15:26:22 -07:00
d4bb3b81fa
file: initialize Orders component and Order component along with its stylesheet
Leon Xu2022-05-07 15:25:01 -07:00
09259257d2
doc: add orders route with its component
Leon Xu2022-05-07 15:23:36 -07:00
0b2b42856f
doc: add eslint-config-google package
Leon Xu2022-05-07 15:18:03 -07:00
07cfc6efc2
doc: dispatch EMPTY_BASKET type
Leon Xu2022-05-07 15:12:52 -07:00
75ec71a467
doc: add EMPTY_BASKET case
Leon Xu2022-05-07 15:12:22 -07:00
df16a7f75f
doc: add *.log to gitignore
Leon Xu2022-05-07 15:11:20 -07:00
7bb7fc45a8
doc: add stripe test key
Leon Xu2022-05-07 15:11:01 -07:00
8d00259af5
fix: spelling errors in API routes
Leon Xu2022-05-07 15:00:02 -07:00
4831ae523c
doc: add express, cors, and stripe along with middleware and routes to index.js
Leon Xu2022-05-07 14:42:13 -07:00
8ecc8ef409
doc: add dotenv package
Leon Xu2022-05-07 14:36:32 -07:00
18daea87cf
doc: add cors, express, and stripe and modified versions
Leon Xu2022-05-07 14:33:41 -07:00
81c1a5b9a4
doc: add .env to gitignore
Leon Xu2022-05-07 14:28:25 -07:00
8822f11b42
file: initialize firebase function
Leon Xu2022-05-07 14:27:33 -07:00
1eac6e687c
doc: add axios, useEffect, useState, Link, and useHistory to payment component
Leon Xu2022-05-07 14:24:39 -07:00
1173614e22
doc: add instance with axio.create
Leon Xu2022-05-07 14:19:08 -07:00
6907dd7c7e
file: create axios in auth directory
Leon Xu2022-05-07 14:17:19 -07:00
1d023fd69b
doc: add buy now button with conditional rendering and error conditional rendering
Leon Xu2022-05-07 14:13:19 -07:00
2010f9423e
doc: remove object inside CurrencyFormat
Leon Xu2022-05-07 14:08:59 -07:00
8b67180daa
doc: add CurrentFormat, getBasketTotal and move payment stylesheet to the bottom
Leon Xu2022-05-07 14:08:03 -07:00
475d51c2a1
doc & fix: add setDisabled and setError to handleChange method and fix handleError to setError
Leon Xu2022-05-07 14:04:10 -07:00
5ac0d48ec7
doc: add useState for handleError and setDisabled
Leon Xu2022-05-07 14:02:49 -07:00
7b96e90ea8
doc: add CardElement, useElements, useStripe from react-stripe-js and handleChange and handleSubmit method
Leon Xu2022-05-07 14:02:02 -07:00
f2ebe6e580
doc: add checkout items link
Leon Xu2022-05-07 13:59:27 -07:00
7479cc892d
doc: add loadStripe and Elements
Leon Xu2022-05-07 13:56:19 -07:00
79ce82df05
doc: add styles to payment stylesheet
Leon Xu2022-05-07 13:50:33 -07:00
94ecbadbf3
doc: update payment component
Leon Xu2022-05-07 13:49:40 -07:00
27e3c294a2
file: create Payment component along with its stylesheet
Leon Xu2022-05-07 13:37:07 -07:00
a6a21a2653
doc: add payment component and its route
Leon Xu2022-05-07 13:36:26 -07:00
c555899892
doc: add payment route on checkout button
Leon Xu2022-05-07 13:34:37 -07:00
1d4b8f215c
doc: add useHistory on react-router-dom
Leon Xu2022-05-07 13:33:52 -07:00
340ef629a8
fix: change second conditional rendering
Leon Xu2022-05-07 13:27:37 -07:00
e974e40104
doc: add user to useStateValue and conditional rendering
Leon Xu2022-05-07 13:26:45 -07:00
2e512535a0
doc: add conditional rendering to Hello text
Leon Xu2022-05-07 13:14:54 -07:00
e2a136a4ef
fix: change auth from firebase to local firebaseInit
Leon Xu2022-05-07 13:11:26 -07:00
b90999b408
doc: add auth then display login route
Leon Xu2022-05-07 13:10:28 -07:00
0c89067013
doc: add alt text to header logo class
Leon Xu2022-05-07 13:08:30 -07:00
c9e71fb06f
doc: add user to useStateValue and render either login or logout and also create authHandle method
Leon Xu2022-05-07 13:07:56 -07:00
8df07b4289
doc: dispatch userType and auth
Leon Xu2022-05-07 13:03:53 -07:00