File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
web-devtools/src/components Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11import React , { useEffect , useRef } from "react" ;
22import styled , { css } from "styled-components" ;
33
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" ;
59
610import { landscapeStyle } from "styles/landscapeStyle" ;
711
@@ -35,7 +39,7 @@ const Container = styled.div`
3539
3640const JSONEditor = ( props : any ) => {
3741 const refContainer = useRef < HTMLDivElement | null > ( null ) ;
38- const refEditor = useRef < JsonEditor | null > ( null ) ;
42+ const refEditor = useRef < VanillaJsonEditor | null > ( null ) ;
3943 const refPrevProps = useRef < JSONEditorPropsOptional > ( props ) ;
4044
4145 useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments