Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions addtocart/cartbutton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import React from 'react';
export default class Addtocart extends React.PureComponent {

render() {
return (
<React.Fragment>
<style jsx>{`
button {
*
*
Copy link
Collaborator

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?

*
background-color: #e33812; font-size: 16px;
Copy link
Collaborator

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?

border-radius: 12px;

color: white;
padding: 15px 32px;
text-align: center;
display: inline-block;
font-size: 16px;
border-radius: 12px;

`}</style>

<button onClick={this.props.onClick}>
{this.props.children}
</button>
</React.Fragment>
);
}
}