mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
f8feddbd22
commit
b5959fc98f
1 changed files with 2 additions and 13 deletions
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { EuiCodeEditor } from '@elastic/eui';
|
||||
import { EuiCodeBlock } from '@elastic/eui';
|
||||
|
||||
import 'brace/theme/textmate';
|
||||
|
||||
|
@ -25,17 +25,6 @@ export class ShowJson extends React.PureComponent {
|
|||
return null;
|
||||
}
|
||||
const json = JSON.stringify(data, null, 2);
|
||||
return (
|
||||
<EuiCodeEditor
|
||||
mode="json"
|
||||
theme="textmate"
|
||||
isReadOnly
|
||||
setOptions={{ maxLines: Infinity }}
|
||||
value={json}
|
||||
editorProps={{
|
||||
$blockScrolling: Infinity,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
return <EuiCodeBlock lang="json">{json}</EuiCodeBlock>;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue