Skip to content

Commit 53a410d

Browse files
Merge pull request salesforce#1663 from interactivellama/remove-pill-checkprops
Pill: Remove checkprops since it is production now
2 parents 0d7b75f + 3d8e62e commit 53a410d

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

components/pill/check-props.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

components/pill/index.jsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ import UtilityIcon from '../utilities/utility-icon';
1212
import KEYS from '../../utilities/key-code';
1313
import EventUtil from '../../utilities/event';
1414

15-
// This component's `checkProps` which issues warnings to developers about properties when in development mode (similar to React's built in development tools)
16-
import checkProps from './check-props';
17-
import componentDoc from './docs.json';
18-
1915
const propTypes = {
2016
/**
2117
* **Assistive text for accessibility**
@@ -115,10 +111,6 @@ const propTypes = {
115111
* A pill displays a label that can contain links and can be removed from view. Use `PillContainer` for a list of pills in a container that resembles an `input` form field. A pill is useful for displaying read-only text that can be added and removed on demand.
116112
*/
117113
class Pill extends React.Component {
118-
componentWillMount() {
119-
checkProps(PILL, componentDoc);
120-
}
121-
122114
getHref = () =>
123115
typeof this.props.href === 'string'
124116
? this.props.href

0 commit comments

Comments
 (0)