Skip to content

Commit 61c5b2d

Browse files
committed
Reverted add of animationPlayState to content
1 parent f0ba0cc commit 61c5b2d

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

src/react-notification.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)