diff --git a/components/buybutton.js b/components/buybutton.js new file mode 100644 index 0000000..7124d87 --- /dev/null +++ b/components/buybutton.js @@ -0,0 +1,41 @@ +import React from 'react'; +/** + * + * + * @export + * @class BuyNow + * @augments {React.PureComponent} + */ +export default class BuyNow extends React.PureComponent { + /** + * @typedef {object} BuyNowProps + * @property {function} onClick + * + * @static + * @memberof BuyNow + */ + + + render() { + return ( + + + + + + ); + } +} \ No newline at end of file diff --git a/pages/index.js b/pages/index.js index e735dc9..9cbe97f 100644 --- a/pages/index.js +++ b/pages/index.js @@ -2,6 +2,7 @@ import React from 'react'; import Item from '../components/Item'; import NavBar from '../components/NavBar'; import links from '../constants/links'; +import buybutton from '../components/buybutton'; /** * Home page @@ -50,11 +51,18 @@ export default class IndexPage extends React.PureComponent { ))} +<<<<<<< HEAD + +======= +

Buy Now Button

+ + + +>>>>>>> 1f4ffb7... buy now button ); } - /** * This is for demo purposes. * Once the component has mounted, we fetch items from our API and sets them to state.