File tree 1 file changed +6
-2
lines changed
web-devtools/src/components
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useEffect , useRef } from "react" ;
2
2
import styled , { css } from "styled-components" ;
3
3
4
- import { createJSONEditor , type JSONEditorPropsOptional , JsonEditor } from "vanilla-jsoneditor" ;
4
+ import {
5
+ createJSONEditor ,
6
+ type JSONEditorPropsOptional ,
7
+ type JsonEditor as VanillaJsonEditor ,
8
+ } from "vanilla-jsoneditor" ;
5
9
6
10
import { landscapeStyle } from "styles/landscapeStyle" ;
7
11
@@ -35,7 +39,7 @@ const Container = styled.div`
35
39
36
40
const JSONEditor = ( props : any ) => {
37
41
const refContainer = useRef < HTMLDivElement | null > ( null ) ;
38
- const refEditor = useRef < JsonEditor | null > ( null ) ;
42
+ const refEditor = useRef < VanillaJsonEditor | null > ( null ) ;
39
43
const refPrevProps = useRef < JSONEditorPropsOptional > ( props ) ;
40
44
41
45
useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments