File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " react-notifications-component" ,
3- "version" : " 2.2.0 " ,
3+ "version" : " 2.2.1 " ,
44 "homepage" : " http://teodosii.github.io/react-notifications-component" ,
55 "description" : " React component for creating notifications on the fly" ,
66 "main" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -258,18 +258,14 @@ export default class ReactNotification extends React.Component {
258258 }
259259
260260 renderCustomContent ( ) {
261- const { htmlClassList, animationPlayState } = this . state ;
261+ const { htmlClassList } = this . state ;
262262 const {
263263 notification : { id, content : CustomContent }
264264 } = this . props ;
265265
266266 return (
267267 < div className = { `${ [ ...htmlClassList , 'n-child' ] . join ( ' ' ) } ` } >
268- { React . isValidElement ( CustomContent ) ? (
269- CustomContent
270- ) : (
271- < CustomContent { ...{ id, animationPlayState } } />
272- ) }
268+ { React . isValidElement ( CustomContent ) ? CustomContent : < CustomContent { ...{ id } } /> }
273269 </ div >
274270 ) ;
275271 }
You can’t perform that action at this time.
0 commit comments