File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 1- var PropTypes = require ( '../prop-types' ) ;
1+ // ------------------------------------------------
2+ // load original React prop-types
3+ // ------------------------------------------------
4+ var REACT_ELEMENT_TYPE = ( typeof Symbol === 'function' &&
5+ Symbol . for &&
6+ Symbol . for ( 'react.element' ) ) ||
7+ 0xeac7 ;
8+
9+ var isValidElement = function ( object ) {
10+ return typeof object === 'object' &&
11+ object !== null &&
12+ object . $$typeof === REACT_ELEMENT_TYPE ;
13+ } ;
14+ var throwOnDirectAccess = true ;
15+ var PropTypes = require ( '../prop-types/factoryWithTypeCheckers' ) ( isValidElement , throwOnDirectAccess ) ;
16+ // ------------------------------------------------
17+ // ------------------------------------------------
18+ // ------------------------------------------------
219
320var AxePropTypes = { } ;
421
You can’t perform that action at this time.
0 commit comments