aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/users/components/UsersSelectSearchOption.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users/components/UsersSelectSearchOption.js')
-rw-r--r--server/sonar-web/src/main/js/apps/users/components/UsersSelectSearchOption.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/components/UsersSelectSearchOption.js b/server/sonar-web/src/main/js/apps/users/components/UsersSelectSearchOption.js
index 5636a042c10..e148e31d78c 100644
--- a/server/sonar-web/src/main/js/apps/users/components/UsersSelectSearchOption.js
+++ b/server/sonar-web/src/main/js/apps/users/components/UsersSelectSearchOption.js
@@ -20,8 +20,9 @@
//@flow
import React from 'react';
import Avatar from '../../../components/ui/Avatar';
-import type { Option } from './UsersSelectSearch';
+/*:: import type { Option } from './UsersSelectSearch'; */
+/*::
type Props = {
option: Option,
children?: Element | Text,
@@ -30,23 +31,24 @@ type Props = {
onFocus: (Option, MouseEvent) => void,
onSelect: (Option, MouseEvent) => void
};
+*/
-const AVATAR_SIZE: number = 20;
+const AVATAR_SIZE /*: number */ = 20;
export default class UsersSelectSearchOption extends React.PureComponent {
- props: Props;
+ /*:: props: Props; */
- handleMouseDown = (event: MouseEvent) => {
+ handleMouseDown = (event /*: MouseEvent */) => {
event.preventDefault();
event.stopPropagation();
this.props.onSelect(this.props.option, event);
};
- handleMouseEnter = (event: MouseEvent) => {
+ handleMouseEnter = (event /*: MouseEvent */) => {
this.props.onFocus(this.props.option, event);
};
- handleMouseMove = (event: MouseEvent) => {
+ handleMouseMove = (event /*: MouseEvent */) => {
if (this.props.isFocused) {
return;
}