Remove usage of == and !=
This commit is contained in:
parent
205a617c51
commit
b67cd10c64
21 changed files with 79 additions and 78 deletions
|
@ -21,13 +21,13 @@ export default class Dialog extends Component {
|
|||
}
|
||||
|
||||
handleBackdropClick(event) {
|
||||
if (event.target.className == "dialog") {
|
||||
if (event.target.className === "dialog") {
|
||||
this.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
handleKeyDown(event) {
|
||||
if (event.key == "Escape") {
|
||||
if (event.key === "Escape") {
|
||||
this.dismiss();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue