diff --git a/bitmovin-analytics-datasource/src/components/QueryEditor.tsx b/bitmovin-analytics-datasource/src/components/QueryEditor.tsx index a5abe31..1f8bcf6 100644 --- a/bitmovin-analytics-datasource/src/components/QueryEditor.tsx +++ b/bitmovin-analytics-datasource/src/components/QueryEditor.tsx @@ -7,15 +7,15 @@ import { MyDataSourceOptions, MyQuery } from '../types'; import { fetchLicenses } from '../utils/licenses'; import { DEFAULT_SELECTABLE_QUERY_INTERVAL, SELECTABLE_QUERY_INTERVALS } from '../utils/intervalUtils'; -type Props = QueryEditorProps; - -export enum LoadingState { +enum LoadingState { Default = 'DEFAULT', Loading = 'LOADING', Success = 'SUCCESS', Error = 'ERROR', } +type Props = QueryEditorProps; + export function QueryEditor({ query, onChange, onRunQuery, datasource }: Props) { const [selectableLicenses, setSelectableLicenses] = useState([]); const [licenseLoadingState, setLicenseLoadingState] = useState(LoadingState.Default);