Forms migration: Input namespace (#23286)

* Update exports

* Add LegacyForms namespace

* Update ci grep
This commit is contained in:
Tobias Skarhed
2020-04-02 16:18:06 +02:00
committed by GitHub
parent 97769188f2
commit 703476b3ae
26 changed files with 70 additions and 48 deletions

View File

@@ -1,6 +1,7 @@
import React, { FunctionComponent, useState } from 'react';
import { debounce } from 'lodash';
import { Input } from '@grafana/ui';
import { LegacyForms } from '@grafana/ui';
const { Input } = LegacyForms;
export interface Props {
onChange: (alias: any) => void;

View File

@@ -1,6 +1,6 @@
import React, { PureComponent } from 'react';
import { FormLabel, LegacyForms, Input, Button } from '@grafana/ui';
const { Select } = LegacyForms;
import { FormLabel, LegacyForms, Button } from '@grafana/ui';
const { Select, Input } = LegacyForms;
import {
DataSourcePluginOptionsEditorProps,
onUpdateDatasourceJsonDataOptionSelect,

View File

@@ -1,6 +1,7 @@
import React, { PureComponent, ChangeEvent } from 'react';
import { ExploreQueryFieldProps } from '@grafana/data';
import { Input, ValidationEvents, EventsWithValidation, Switch } from '@grafana/ui';
import { LegacyForms, ValidationEvents, EventsWithValidation, Switch } from '@grafana/ui';
const { Input } = LegacyForms;
import isEmpty from 'lodash/isEmpty';
import { CloudWatchQuery } from '../types';
import CloudWatchDatasource from '../datasource';