mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Move User type out of UserPicker and into app/types
This commit is contained in:
parent
353a836128
commit
e8ba35ab2d
@ -3,6 +3,7 @@ import Select from 'react-select';
|
||||
import PickerOption from './PickerOption';
|
||||
import { debounce } from 'lodash';
|
||||
import { getBackendSrv } from 'app/core/services/backend_srv';
|
||||
import { User } from 'app/types';
|
||||
|
||||
export interface Props {
|
||||
onSelected: (user: User) => void;
|
||||
@ -14,13 +15,6 @@ export interface State {
|
||||
isLoading: boolean;
|
||||
}
|
||||
|
||||
export interface User {
|
||||
id: number;
|
||||
label: string;
|
||||
avatarUrl: string;
|
||||
login: string;
|
||||
}
|
||||
|
||||
export class UserPicker extends Component<Props, State> {
|
||||
debouncedSearch: any;
|
||||
|
||||
|
@ -8,6 +8,7 @@ import { DashboardAcl, OrgRole, PermissionLevel } from './acl';
|
||||
import { DataSource } from './datasources';
|
||||
import { PluginMeta } from './plugins';
|
||||
import { ApiKey, ApiKeysState } from './apiKeys';
|
||||
import { User } from './user';
|
||||
|
||||
export {
|
||||
Team,
|
||||
@ -36,6 +37,7 @@ export {
|
||||
PluginMeta,
|
||||
ApiKey,
|
||||
ApiKeysState,
|
||||
User,
|
||||
};
|
||||
|
||||
export interface StoreState {
|
||||
|
6
public/app/types/user.ts
Normal file
6
public/app/types/user.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export interface User {
|
||||
id: number;
|
||||
label: string;
|
||||
avatarUrl: string;
|
||||
login: string;
|
||||
}
|
Loading…
Reference in New Issue
Block a user