-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathbuybutton.js
More file actions
41 lines (37 loc) · 793 Bytes
/
buybutton.js
File metadata and controls
41 lines (37 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React from 'react';
/**
*
*
* @export
* @class BuyNow
* @augments {React.PureComponent<BuyNowProps>}
*/
export default class BuyNow extends React.PureComponent {
/**
* @typedef {object} BuyNowProps
* @property {function} onClick
*
* @static
* @memberof BuyNow
*/
render() {
return (
<React.Fragment>
<style jsx>{`
button {
background-color: #e33812;
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>
);
}
}