mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 09:13:05 +08:00
fix error with event not defined and add flowtype to ESLint
This commit is contained in:
parent
dfb2689fbf
commit
fd743ec2d5
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"plugins": ["react", "prettier"],
|
||||
"plugins": ["flowtype", "react", "prettier"],
|
||||
"extends": ["airbnb", "prettier", "prettier/react"],
|
||||
"parser": "babel-eslint",
|
||||
"parserOptions": {
|
||||
|
|
|
@ -61,7 +61,7 @@ export default class SettingsPage extends Component<*, State> {
|
|||
(this: any).setState({ teamsTableSizePerPage });
|
||||
}
|
||||
|
||||
handleSelect(eventKey: string): void {
|
||||
handleSelect(eventKey: string, event: SyntheticEvent<*>): void {
|
||||
event.preventDefault();
|
||||
(this: any).setState({ active: eventKey });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue