Skip to content

Commit

Permalink
MNT ESLint issues (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabina-talipova authored Jul 9, 2023
1 parent ad4bf54 commit dfdd95b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions client/src/components/ColorPickerField/ColorPickerField.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class ColorPickerField extends Component {
}

handleToggle() {
this.setState({
isOpen: !this.state.isOpen
});
this.setState((prevState) => ({
isOpen: !prevState.isOpen,
}));
}

renderButton() {
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/FontPickerField/FontPickerField.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class FontPickerField extends Component {
}

handleToggle() {
this.setState({
isOpen: !this.state.isOpen
});
this.setState((prevState) => ({
isOpen: !prevState.isOpen,
}));
}

renderSelectorButton() {
Expand Down

0 comments on commit dfdd95b

Please sign in to comment.