-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add To Cart Button #43
base: master
Are you sure you want to change the base?
Conversation
Since this Pull Request originated from a forked repository, Now cannot deploy it as there are potential security risks. If you are a collaborator on this repository, consider making this Pull Request from a branch on the same repository instead of a fork. |
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.
Are you still working on this?
yes @0x48piraj !! |
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.
Could you rename file as AddToCart
and change class name to the same? This type of casing is called capitalized camel casing.
- camelCase (for variable names, methods, functions)
- CapCase (for ClassNames)
- CAPITALIZED_SNAKE_CASE (for constants)
- snake_case (not recommended in Java/JavaScript however quite popular in PHP/Python/C).
Also please use prettier to fix formatting issues. You can install the extension in VSCode as mentioned in project README.md file. Let us know if you face difficulties.
addtocart/cartbutton.js
Outdated
<style jsx>{` | ||
button { | ||
* | ||
* |
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.
What are these *s for?
addtocart/cartbutton.js
Outdated
* | ||
* | ||
* | ||
background-color: #e33812; font-size: 16px; |
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.
Could you place font-size to new line?
No description provided.