chore: bump @grafana/create-plugin configuration to 5.26.4 (#2082)
Bumps [`@grafana/create-plugin`](https://github.com/grafana/plugin-tools/tree/main/packages/create-plugin) configuration from 4.2.1 to 5.26.4. **Notes for reviewer:** This is an auto-generated PR which ran `@grafana/create-plugin update`. Please consult the create-plugin [CHANGELOG.md](https://github.com/grafana/plugin-tools/blob/main/packages/create-plugin/CHANGELOG.md) to understand what may have changed. Please review the changes thoroughly before merging. --------- Co-authored-by: grafana-plugins-platform-bot[bot] <144369747+grafana-plugins-platform-bot[bot]@users.noreply.github.com> Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e76741b453
commit
b13d567eee
@@ -15,7 +15,7 @@ const PROBLEM_EVENTS_LIMIT = 100;
|
||||
|
||||
interface ProblemsPanelProps extends PanelProps<ProblemsPanelOptions> {}
|
||||
|
||||
export const ProblemsPanel = (props: ProblemsPanelProps): JSX.Element => {
|
||||
export const ProblemsPanel = (props: ProblemsPanelProps) => {
|
||||
const { data, options, timeRange, onOptionsChange } = props;
|
||||
const { layout, showTriggers, triggerSeverity, sortProblems } = options;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import React, { PureComponent, ReactNode } from 'react';
|
||||
import { css } from '@emotion/css';
|
||||
import { GrafanaTheme, SelectableValue } from '@grafana/data';
|
||||
import { Button, Spinner, Modal, Select, stylesFactory, withTheme, Themeable, ButtonGroup } from '@grafana/ui';
|
||||
@@ -16,8 +16,8 @@ interface State {
|
||||
scriptOptions: Array<SelectableValue<string>>;
|
||||
script: ZBXScript;
|
||||
error: boolean;
|
||||
errorMessage: string | JSX.Element;
|
||||
result: string | JSX.Element;
|
||||
errorMessage: string | ReactNode;
|
||||
result: string | ReactNode;
|
||||
selectError: string;
|
||||
loading: boolean;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import { TriggerSeverity } from '../types';
|
||||
|
||||
type Props = StandardEditorProps<TriggerSeverity[]>;
|
||||
|
||||
export const ProblemColorEditor = ({ value, onChange }: Props): JSX.Element => {
|
||||
export const ProblemColorEditor = ({ value, onChange }: Props) => {
|
||||
const onSeverityItemChange = (severity: TriggerSeverity) => {
|
||||
value.forEach((v, i) => {
|
||||
if (v.priority === severity.priority) {
|
||||
@@ -33,7 +33,7 @@ interface ProblemColorEditorRowProps {
|
||||
onChange: (value?: TriggerSeverity) => void;
|
||||
}
|
||||
|
||||
export const ProblemColorEditorRow = ({ value, onChange }: ProblemColorEditorRowProps): JSX.Element => {
|
||||
export const ProblemColorEditorRow = ({ value, onChange }: ProblemColorEditorRowProps) => {
|
||||
const onSeverityNameChange = (v: FormEvent<HTMLInputElement>) => {
|
||||
const newValue = v?.currentTarget?.value;
|
||||
if (newValue !== null) {
|
||||
|
||||
Reference in New Issue
Block a user