Form migrations: Final components to LegacyForms (#23707)

* FormField to LegacyForms

* FormLabel to InlineFormLabel

* Move SecretFormField to LeagcyForms
This commit is contained in:
Tobias Skarhed
2020-04-21 11:42:21 +02:00
committed by GitHub
parent b7809918f0
commit 7e4292508f
42 changed files with 155 additions and 138 deletions
@@ -5,7 +5,7 @@ import React, { PureComponent } from 'react';
import { InputDatasource, describeDataFrame } from './InputDatasource';
import { InputQuery, InputOptions } from './types';
import { FormLabel, LegacyForms, TableInputCSV, Icon } from '@grafana/ui';
import { InlineFormLabel, LegacyForms, TableInputCSV, Icon } from '@grafana/ui';
const { Select } = LegacyForms;
import { DataFrame, toCSV, SelectableValue, MutableDataFrame, QueryEditorProps } from '@grafana/data';
@@ -69,7 +69,7 @@ export class InputQueryEditor extends PureComponent<Props, State> {
return (
<div>
<div className="gf-form">
<FormLabel width={4}>Data</FormLabel>
<InlineFormLabel width={4}>Data</InlineFormLabel>
<Select width={6} options={options} value={selected} onChange={this.onSourceChange} />
<div className="btn btn-link">