diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-10 16:02:07 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-10 16:02:07 -0400 |
| commit | 632af35d8a0871ca8c1041d0e14d63e2b457d168 (patch) | |
| tree | 6d3ccae3cb20a082e4e6ea6fd982152568000193 /frontend/components/CartCount.js | |
| parent | e0c628528142f26ce9a42ba4c3c5d2cb41114a56 (diff) | |
Styles
Diffstat (limited to 'frontend/components/CartCount.js')
| -rw-r--r-- | frontend/components/CartCount.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/components/CartCount.js b/frontend/components/CartCount.js index 525ed22..ae51f20 100644 --- a/frontend/components/CartCount.js +++ b/frontend/components/CartCount.js @@ -1,5 +1,6 @@ import styled from 'styled-components'; import { TransitionGroup, CSSTransition } from 'react-transition-group'; +import PropTypes from 'prop-types'; const Dot = styled.div` background: ${props => props.theme.red}; @@ -57,4 +58,7 @@ const CartCount = ({ count }) => ( </AnimationStyles> ); +CartCount.propTypes = { + count: PropTypes.number.isRequired, +}; export default CartCount; |
