fleet/frontend/components/NumberPill/NumberPill.jsx
Zachary Wasserman dc4b97d15f
Fix React deprecation warnings (#1976)
- Refactor imports of PropTypes to use the prop-types package
- Upgrade dependencies that were setting off deprecation warnings
2019-01-06 17:25:33 -08:00

13 lines
245 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
const NumberPill = ({ number }) => {
return <span className="number-pill">{number}</span>;
};
NumberPill.propTypes = {
number: PropTypes.number,
};
export default NumberPill;