From b473ef3909e02f1ccaa1a3069dcc711610b8eefe Mon Sep 17 00:00:00 2001 From: elisejakob Date: Wed, 30 Jan 2019 14:58:10 +0100 Subject: [PATCH] remove unnecessary components --- src/components/Features.js | 28 ------------------------ src/components/Pricing.js | 40 ---------------------------------- src/components/Testimonials.js | 28 ------------------------ 3 files changed, 96 deletions(-) delete mode 100644 src/components/Features.js delete mode 100644 src/components/Pricing.js delete mode 100644 src/components/Testimonials.js diff --git a/src/components/Features.js b/src/components/Features.js deleted file mode 100644 index 15c19b2..0000000 --- a/src/components/Features.js +++ /dev/null @@ -1,28 +0,0 @@ -import React from 'react' -import PropTypes from 'prop-types' - -const FeatureGrid = ({ gridItems }) => ( -
- {gridItems.map(item => ( -
-
-

- -

-

{item.text}

-
-
- ))} -
-) - -FeatureGrid.propTypes = { - gridItems: PropTypes.arrayOf( - PropTypes.shape({ - image: PropTypes.string, - text: PropTypes.string, - }) - ), -} - -export default FeatureGrid diff --git a/src/components/Pricing.js b/src/components/Pricing.js deleted file mode 100644 index 6677a65..0000000 --- a/src/components/Pricing.js +++ /dev/null @@ -1,40 +0,0 @@ -import React from 'react' -import PropTypes from 'prop-types' - -const Pricing = ({ data }) => ( -
- {data.map(price => ( -
-
-

- {price.plan} -

-

- ${price.price} -

-

{price.description}

-
    - {price.items.map(item => ( -
  • - {item} -
  • - ))} -
-
-
- ))} -
-) - -Pricing.propTypes = { - data: PropTypes.arrayOf( - PropTypes.shape({ - plan: PropTypes.string, - price: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - description: PropTypes.string, - items: PropTypes.array, - }) - ), -} - -export default Pricing diff --git a/src/components/Testimonials.js b/src/components/Testimonials.js deleted file mode 100644 index 99cc3b9..0000000 --- a/src/components/Testimonials.js +++ /dev/null @@ -1,28 +0,0 @@ -import React from 'react' -import PropTypes from 'prop-types' -import { v4 } from 'uuid' - -const Testimonials = ({ testimonials }) => ( -
- {testimonials.map(testimonial => ( -
-
- {testimonial.quote} -
- – {testimonial.author} -
-
- ))} -
-) - -Testimonials.propTypes = { - testimonials: PropTypes.arrayOf( - PropTypes.shape({ - quote: PropTypes.string, - author: PropTypes.string, - }) - ), -} - -export default Testimonials