diff --git a/src/components/Trend.jsx b/src/components/Trend.jsx deleted file mode 100644 index 77d736f..0000000 --- a/src/components/Trend.jsx +++ /dev/null @@ -1,35 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import cx from 'classnames'; - -const Trend = ({ context, className, style, value, unit }) => { - const baseClass = 'gds-card__trend'; - const rootClass = cx(baseClass, className, { - [`${baseClass}--${context}`]: context - }); - - return ( -
- {value} - {unit} -
- ); -}; - -Trend.displayName = 'Trend'; - -Trend.defaultProps = { - context: 'up', - unit: '%' -}; - -Trend.propTypes = { - /** up, same, down */ - context: PropTypes.string, - value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - unit: PropTypes.string, - className: PropTypes.string, - style: PropTypes.object -}; - -export default Trend;