Skip to content

Commit

Permalink
fix: eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed Aug 21, 2017
1 parent 49aa141 commit 2687c92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/app/App.js
Expand Up @@ -52,6 +52,7 @@ export default class App extends Component {

<div className="github-button-container">
<iframe
title="Hello"
src="https://ghbtns.com/github-btn.html?user=tomchentw&amp;repo=react-toastr&amp;type=watch&amp;count=true"
allowTransparency="true"
frameBorder="0"
Expand All @@ -60,6 +61,7 @@ export default class App extends Component {
height="20"
/>
<iframe
title="CLEAR"
src="https://ghbtns.com/github-btn.html?user=tomchentw&amp;repo=react-toastr&amp;type=fork&amp;count=true"
allowTransparency="true"
frameBorder="0"
Expand Down
3 changes: 0 additions & 3 deletions src/lib/ToastContainer.js
Expand Up @@ -125,9 +125,6 @@ export default class ToastContainer extends Component {
}

_handle_toast_remove(toastId) {
if (this.props.preventDuplicates) {
this.state.previousMessage = ``;
}
const operationName = `${this.props.newestOnTop ? `reduceRight` : `reduce`}`;
this.state.toasts[operationName]((found, toast, index) => {
if (found || toast.toastId !== toastId) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ToastMessage/index.js
Expand Up @@ -62,7 +62,7 @@ const ToastMessageSpec = {
_render_close_button() {
return this.props.closeButton ? (
<button
className="toast-close-button" role="button"
className="toast-close-button"
onClick={this._handle_close_button_click}
dangerouslySetInnerHTML={{ __html: `&times;` }}
/>
Expand Down

0 comments on commit 2687c92

Please sign in to comment.