-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Checkout These Talons! #1775
Checkout These Talons! #1775
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left comments on a couple things I noticed on my way through the first few files. Let's discuss before proceeding.
import { useAppContext } from '@magento/peregrine/lib/context/app'; | ||
|
||
export const useReceipt = props => { | ||
// TODO replace with useHistory from Router 5.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄
cartState, | ||
checkoutDisabled: isSubmitting || cartState.isEmpty, | ||
checkoutState, | ||
isReady: isCheckoutReady(checkoutState), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me. I only have the one question about what happened to the Cart
component. This will really help open up checkout customization. 👍
351d114
to
6f509cf
Compare
@@ -30,6 +30,7 @@ | |||
}, | |||
"peerDependencies": { | |||
"@babel/runtime": "~7.4.2", | |||
"informed": "~2.1.13", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to have updated the yarn lock. 🤷♂
Description
Talon-ized the checkout components. I did not add much documentation because IMO we should refactor checkout to use context. At that time the props being passed around will be greatly reduced in number making docs not a pain in the rear to write.
Components not being "talonized". I didn't do these for reasons. Most of them are just display logic but I wasn't sure about
BraintreeDropin
.Acceptance
Verification Stakeholders
@jimbo
Verification Steps
Regression test checkout. Authed and unauthed.
Screenshots / Screen Captures (if appropriate)
Checklist