mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fixing imports, minor fix on mapping row
This commit is contained in:
parent
58094faa12
commit
83fbf52aac
@ -1,7 +1,7 @@
|
||||
import React, { SFC } from 'react';
|
||||
import { Label } from '..';
|
||||
|
||||
interface Props {
|
||||
export interface Props {
|
||||
label: string;
|
||||
inputProps: {};
|
||||
labelWidth?: number;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React, { SFC, ReactNode } from 'react';
|
||||
import { Tooltip } from '@grafana/ui';
|
||||
import { Tooltip } from '..';
|
||||
|
||||
interface Props {
|
||||
tooltip?: string;
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
import { Label } from '../../../../../packages/grafana-ui/src/components/Label/Label';
|
||||
import { Select } from '@grafana/ui';
|
||||
import { Label, Select } from '@grafana/ui';
|
||||
import { getBackendSrv, BackendSrv } from 'app/core/services/backend_srv';
|
||||
|
||||
import { DashboardSearchHit } from 'app/types';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React, { SFC } from 'react';
|
||||
import { Label } from '../../../../../packages/grafana-ui/src/components/Label/Label';
|
||||
import { Label } from '@grafana/ui';
|
||||
import { Switch } from '../../../core/components/Switch/Switch';
|
||||
|
||||
export interface Props {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { Label } from '../../../../packages/grafana-ui/src/components/Label/Label';
|
||||
import { Label } from '@grafana/ui';
|
||||
import { SharedPreferences } from 'app/core/components/SharedPreferences/SharedPreferences';
|
||||
import { updateTeam } from './state/actions';
|
||||
import { getRouteParamsId } from 'app/core/selectors/location';
|
||||
|
@ -81,16 +81,15 @@ export default class MappingRow extends PureComponent<Props, State> {
|
||||
}}
|
||||
inputWidth={8}
|
||||
/>
|
||||
<FormGroup
|
||||
label="Text"
|
||||
labelWidth={4}
|
||||
inputProps={{
|
||||
onBlur: () => this.updateMapping,
|
||||
onChange: event => this.onMappingTextChange(event),
|
||||
value: text,
|
||||
}}
|
||||
inputWidth={10}
|
||||
<div className="gf-form gf-form--grow">
|
||||
<Label width={4}>Text</Label>
|
||||
<input
|
||||
className="gf-form-input"
|
||||
onBlur={this.updateMapping}
|
||||
value={text}
|
||||
onChange={this.onMappingTextChange}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user