File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
src/client/components-v2/main/response Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ import CodeMirror from '@uiw/react-codemirror';
44// import { UnControlled as CodeMirror } from 'react-codemirror2';
55import EmptyState from '../../../components/display/EmptyState' ;
66import EventPreview from '../../../components/display/EventPreview' ;
7- import 'codemirror/theme/neo.css' ;
7+ import { json } from '@codemirror/lang-json' ;
8+ import { EditorView } from "@codemirror/view"
89
910function EventsContainer ( { currentResponse } ) {
1011 const { request, response } = currentResponse ;
@@ -60,14 +61,12 @@ function EventsContainer({ currentResponse }) {
6061 < CodeMirror
6162 className = "overflow-event-child-container"
6263 value = { responseBody }
63- options = { {
64- mode : 'application/json' ,
65- theme : 'neo responsebody' ,
66- lineNumbers : true ,
67- tabSize : 4 ,
68- lineWrapping : true ,
69- readOnly : true ,
70- } }
64+ theme = "dark"
65+ readOnly = { true }
66+ extensions = { [
67+ javascript ( ) ,
68+ EditorView . lineWrapping ,
69+ ] }
7170 />
7271 </ div >
7372 </ div >
You can’t perform that action at this time.
0 commit comments