-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TITAN-279] - Re-create required header components in Faust #9
Conversation
f552d32
to
a76c918
Compare
// const cartToken = cookieCutter.get('atlas-shopify-token-cart'); | ||
|
||
// const headers = { | ||
// 'Content-Type': 'application/json', | ||
// 'Accept': 'application/json', | ||
// }; | ||
|
||
// if (cartToken) { | ||
// headers['Authorization'] = 'Bearer ' + cartToken; | ||
// } | ||
|
||
// // const result = await fetch( | ||
// // `${process.env.NEXT_PUBLIC_WORDPRESS_URL}/wp-json/atlas-commerce-connector-bigcommerce/v1/cart`, | ||
// // { | ||
// // method: 'POST', | ||
// // headers, | ||
// // body: JSON.stringify(body), | ||
// // } | ||
// // ); |
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.
Why keep the dead code?
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.
We might use it when we go to implement the cart in the next sprint, not exactly sure how it will work yet but it will involve similar use of fetch and token retrieval from cookies. Keeping it as reference.
Description
Adding the
Header
and its child components in the new Blueprint. Supporting Styles as well as TheuseAtlasShopify
Hook that theCartQuickView
component uses. Style and functionality cleanups will follow.TITAN-279
Screenshots