Skip to content
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

Merged
merged 7 commits into from
Apr 6, 2023

Conversation

RossoMaguire
Copy link
Contributor

@RossoMaguire RossoMaguire commented Apr 4, 2023

Description

Adding the Header and its child components in the new Blueprint. Supporting Styles as well as The useAtlasShopify Hook that the CartQuickView component uses. Style and functionality cleanups will follow.

TITAN-279

Screenshots

Screenshot 2023-04-04 at 16 13 37

Comment on lines +6 to +24
// 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),
// // }
// // );
Copy link
Member

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?

Copy link
Contributor Author

@RossoMaguire RossoMaguire Apr 5, 2023

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.

@RossoMaguire RossoMaguire merged commit a232611 into main Apr 6, 2023
@RossoMaguire RossoMaguire deleted the RossoMaguire/TITAN-279 branch April 6, 2023 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants