Dashboards: Adds cheat sheet toggle to supported query editors (#28857)

* Dashboards: Adds cheat sheet toggle to supported query editors
This commit is contained in:
kay delaney
2021-01-19 22:52:09 +00:00
committed by GitHub
parent 5d0a577f07
commit b9b6af9491
19 changed files with 189 additions and 120 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { ExploreStartPageProps, DataQuery } from '@grafana/data';
import { QueryEditorHelpProps, DataQuery } from '@grafana/data';
const CHEAT_SHEET_ITEMS = [
{
@@ -25,7 +25,7 @@ const CHEAT_SHEET_ITEMS = [
},
];
const PromCheatSheet = (props: ExploreStartPageProps) => (
const PromCheatSheet = (props: QueryEditorHelpProps) => (
<div>
<h2>PromQL Cheat Sheet</h2>
{CHEAT_SHEET_ITEMS.map((item, index) => (