@@ -102,45 +102,3 @@ export const Toast = forwardRef<HTMLDivElement, ToastProps>(function Toast(
102102 </ CSSTransition >
103103 ) ;
104104} ) ;
105-
106- /* istanbul ignore next */
107- if ( process . env . NODE_ENV !== "production" ) {
108- try {
109- const PropTypes = require ( "prop-types" ) ;
110-
111- Toast . propTypes = {
112- visible : PropTypes . bool . isRequired ,
113- action : PropTypes . element ,
114- stacked : PropTypes . bool ,
115- twoLines : PropTypes . bool ,
116- className : PropTypes . string ,
117- classNames : PropTypes . oneOfType ( [
118- PropTypes . string ,
119- PropTypes . shape ( {
120- appear : PropTypes . string ,
121- appearActive : PropTypes . string ,
122- enter : PropTypes . string ,
123- enterActive : PropTypes . string ,
124- enterDone : PropTypes . string ,
125- exit : PropTypes . string ,
126- exitActive : PropTypes . string ,
127- exitDone : PropTypes . string ,
128- } ) ,
129- ] ) ,
130- timeout : PropTypes . oneOfType ( [
131- PropTypes . number ,
132- PropTypes . shape ( {
133- enter : PropTypes . number ,
134- exit : PropTypes . number ,
135- } ) ,
136- ] ) ,
137- children : PropTypes . node ,
138- onEnter : PropTypes . func ,
139- onEntering : PropTypes . func ,
140- onEntered : PropTypes . func ,
141- onExit : PropTypes . func ,
142- onExiting : PropTypes . func ,
143- onExited : PropTypes . func ,
144- } ;
145- } catch ( e ) { }
146- }
0 commit comments