Browse Source

fix: Add interface for props to UserPickerOption (#10289)

Johannes Schill 8 years ago
parent
commit
68d43b865f
1 changed files with 8 additions and 2 deletions
  1. 8 2
      public/app/core/components/UserPicker/UserPickerOption.tsx

+ 8 - 2
public/app/core/components/UserPicker/UserPickerOption.tsx

@@ -1,6 +1,12 @@
 import React, { Component } from "react";
-
-class UserPickerOption extends Component {
+export interface IProps {
+  onSelect: any;
+  onFocus: any;
+  option: any;
+  isFocused: any;
+  className: any;
+}
+class UserPickerOption extends Component<IProps, any> {
   constructor(props) {
     super(props);
     this.handleMouseDown = this.handleMouseDown.bind(this);