Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning unknown props. Close #68 #70

Closed
wants to merge 1 commit into from
Closed

Fix warning unknown props. Close #68 #70

wants to merge 1 commit into from

Conversation

erikaperugachi
Copy link

@erikaperugachi erikaperugachi commented Jul 22, 2016

Following this concept https://facebook.github.io/react/warnings/unknown-prop.html, fix the warning. Transferring the necessary props.

@@ -139,8 +139,14 @@ export default class ToastContainer extends Component {
}

render() {
const divProps = Object.assign({}, this.props);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please just use _.omit(this.props, ["toastMessageFactory", "toastType", "preventDuplicates", "newestOnTop"]) since lodash is already included as dependency.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as #67 did.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! :)

tomchentw pushed a commit that referenced this pull request Aug 1, 2016
@tomchentw
Copy link
Owner

Thank @erikaperugachi. Since #67 are committed and fixed earlier, I decided to merge their PR. I've included your contribution in the commit message.

Closed by #67

@tomchentw tomchentw closed this Aug 1, 2016
@tomchentw
Copy link
Owner

Released v2.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants