From ba4ce1744e65c3563b46d1a86408362e860c402b Mon Sep 17 00:00:00 2001 From: leMaik Date: Fri, 6 Apr 2018 22:18:51 +0200 Subject: [PATCH] Drop weird props from carousel view. --- src/SwipableCarouselView.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/SwipableCarouselView.js b/src/SwipableCarouselView.js index 95229ce..8516aa2 100644 --- a/src/SwipableCarouselView.js +++ b/src/SwipableCarouselView.js @@ -1,5 +1,4 @@ import React from 'react' -import PropTypes from 'prop-types' import autoPlay from 'react-swipeable-views-utils/lib/autoPlay' import virtualize from 'react-swipeable-views-utils/lib/virtualize' import bindKeyboard from 'react-swipeable-views-utils/lib/bindKeyboard' @@ -16,11 +15,3 @@ export default function Carousel ({children, ...other}) { ) } - -if (process.env.NODE_ENV !== 'production') { - Carousel.propTypes = { - ...VirtualizeAutoPlaySwipeViews.propTypes, - children: PropTypes.node - } - delete Carousel.propTypes.slideRenderer -}