diff --git a/src/datasource/components/QueryEditor.tsx b/src/datasource/components/QueryEditor.tsx index 0fecb0ea8..f2d69e4c9 100644 --- a/src/datasource/components/QueryEditor.tsx +++ b/src/datasource/components/QueryEditor.tsx @@ -1,6 +1,6 @@ import React, { useEffect } from 'react'; import { QueryEditorProps, SelectableValue } from '@grafana/data'; -import { InlineField, InlineFieldRow, Select } from '@grafana/ui'; +import { InlineField, Select } from '@grafana/ui'; import * as c from '../constants'; import { migrate, DS_QUERY_SCHEMA } from '../migrations'; import { ZabbixDatasource } from '../datasource'; @@ -14,6 +14,7 @@ import { ItemIdQueryEditor } from './QueryEditor/ItemIdQueryEditor'; import { ServicesQueryEditor } from './QueryEditor/ServicesQueryEditor'; import { TriggersQueryEditor } from './QueryEditor/TriggersQueryEditor'; import { UserMacrosQueryEditor } from './QueryEditor/UserMacrosQueryEditor'; +import { QueryEditorRow } from './QueryEditor/QueryEditorRow'; const zabbixQueryTypeOptions: Array> = [ { @@ -197,7 +198,7 @@ export const QueryEditor = ({ query, datasource, onChange, onRunQuery }: ZabbixQ return ( <> - + - -
-
- Group + + + -
+ )} ); diff --git a/src/datasource/components/ZabbixInput.tsx b/src/datasource/components/ZabbixInput.tsx index deb140d41..14eec4c37 100644 --- a/src/datasource/components/ZabbixInput.tsx +++ b/src/datasource/components/ZabbixInput.tsx @@ -5,7 +5,7 @@ import { GrafanaTheme2 } from '@grafana/data'; import { isRegex, variableRegex } from '../utils'; import * as grafanaUi from '@grafana/ui'; -const Input = (grafanaUi as any).LegacyForms?.Input || (grafanaUi as any).Input; +const Input = (grafanaUi as any).Input || (grafanaUi as any).LegacyForms?.Input; const variablePattern = RegExp(`^${variableRegex.source}`); diff --git a/src/panel-triggers/components/AckModal.tsx b/src/panel-triggers/components/AckModal.tsx index e8f67a84e..4e1008277 100644 --- a/src/panel-triggers/components/AckModal.tsx +++ b/src/panel-triggers/components/AckModal.tsx @@ -1,5 +1,5 @@ import React, { PureComponent } from 'react'; -import { cx, css } from '@emotion/css'; +import { css } from '@emotion/css'; import { ZBX_ACK_ACTION_ADD_MESSAGE, ZBX_ACK_ACTION_ACK, @@ -17,6 +17,7 @@ import { withTheme, Themeable, TextArea, + ButtonGroup, } from '@grafana/ui'; import { FAIcon } from '../../components'; import { GrafanaTheme } from '@grafana/data'; @@ -200,63 +201,49 @@ export class AckModalUnthemed extends PureComponent { render() { const { theme } = this.props; - const styles = getStyles(theme); - const modalClass = cx(styles.modal); - const modalTitleClass = cx(styles.modalHeaderTitle); - const inputGroupClass = cx('gf-form', styles.inputGroup); - const inputClass = cx(this.state.error && styles.input); - const inputHintClass = cx('gf-form-hint-text', styles.inputHint); - const inputErrorClass = cx('gf-form-hint-text', styles.inputError); return ( +
{this.state.loading ? : } - Acknowledge Problem + Acknowledge Problem
} > -
- +
+