Skip to content

Commit

Permalink
agregue PropTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis-Kristen committed Mar 26, 2020
1 parent c445cde commit 0785cc4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
17 changes: 10 additions & 7 deletions node_modules/prop-types/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.19.0",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
Expand Down
10 changes: 9 additions & 1 deletion src/components/CarouselItem.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';
import '../assets/styles/components/CarouselItem.scss';
import playIcon from '../assets/static/play-icon.png';
import plusIcon from '../assets/static/plus-icon.png';
import Carousel from './Carousel';

const CarouselItem = ({ cover, title, year, contentRating, duration }) => (
<div className="carousel-item">
Expand All @@ -19,5 +21,11 @@ const CarouselItem = ({ cover, title, year, contentRating, duration }) => (
</div>
);


CarouselItem.propTypes = {
cover: PropTypes.string,
title: PropTypes.string,
year: PropTypes.number,
contentRating: PropTypes.string,
duration: PropTypes.number,
}
export default CarouselItem;

0 comments on commit 0785cc4

Please sign in to comment.