Skip to content

Commit 8a1d7d7

Browse files
[Console] Fix example in help flyout (#71188)
1 parent 14752ea commit 8a1d7d7

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/plugins/console/public/application/components/editor_example.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,24 @@
1818
*/
1919
import { EuiScreenReaderOnly } from '@elastic/eui';
2020
import { i18n } from '@kbn/i18n';
21-
// @ts-ignore
22-
import exampleText from 'raw-loader!../constants/help_example.txt';
2321
import React, { useEffect } from 'react';
2422
import { createReadOnlyAceEditor } from '../models/legacy_core_editor';
2523

2624
interface EditorExampleProps {
2725
panel: string;
2826
}
2927

28+
const exampleText = `
29+
# index a doc
30+
PUT index/1
31+
{
32+
"body": "here"
33+
}
34+
35+
# and get it ...
36+
GET index/1
37+
`;
38+
3039
export function EditorExample(props: EditorExampleProps) {
3140
const elemId = `help-example-${props.panel}`;
3241
const inputId = `help-example-${props.panel}-input`;

src/plugins/console/public/application/constants/help_example.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)