Skip to content

Commit

Permalink
Reverted add of animationPlayState to content
Browse files Browse the repository at this point in the history
  • Loading branch information
teodosii committed Nov 6, 2019
1 parent f0ba0cc commit 61c5b2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-notifications-component",
"version": "2.2.0",
"version": "2.2.1",
"homepage": "http://teodosii.github.io/react-notifications-component",
"description": "React component for creating notifications on the fly",
"main": "dist/index.js",
Expand Down
8 changes: 2 additions & 6 deletions src/react-notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,14 @@ export default class ReactNotification extends React.Component {
}

renderCustomContent() {
const { htmlClassList, animationPlayState } = this.state;
const { htmlClassList } = this.state;
const {
notification: { id, content: CustomContent }
} = this.props;

return (
<div className={`${[...htmlClassList, 'n-child'].join(' ')}`}>
{React.isValidElement(CustomContent) ? (
CustomContent
) : (
<CustomContent {...{ id, animationPlayState }} />
)}
{React.isValidElement(CustomContent) ? CustomContent : <CustomContent {...{ id }} />}
</div>
);
}
Expand Down

0 comments on commit 61c5b2d

Please sign in to comment.