Skip to content

Commit

Permalink
fix: unpack npm modules + rename JSONRequest to JSONRequestEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejonas committed Dec 14, 2019
1 parent cb77295 commit b756454
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"dependencies": {
"@etclabscore/monaco-add-json-schema-diagnostics": "^1.0.3",
"@etclabscore/react-monaco-editor": "file:../../etclabscore-react-monaco-editor-0.0.0-development.tgz",
"@etclabscore/react-monaco-editor": "^1.0.2",
"@material-ui/core": "^4.7.2",
"@material-ui/icons": "^4.5.1",
"@monaco-editor/react": "^2.3.0",
Expand Down
5 changes: 3 additions & 2 deletions src/containers/Inspector.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect, ChangeEvent, Dispatch, useRef } from "react";
import SplitPane from "react-split-pane";
import JSONRPCRequest from "./JSONRPCRequest";
import JSONRPCRequestEditor from "./JSONRPCRequestEditor";
import PlayCircle from "@material-ui/icons/PlayCircleFilled";
import { IconButton, AppBar, Toolbar, Typography, Button, InputBase } from "@material-ui/core";
import { Client, RequestManager, HTTPTransport, WebSocketTransport } from "@open-rpc/client-js";
Expand Down Expand Up @@ -127,6 +127,7 @@ const Inspector: React.FC<IProps> = (props) => {
}
};


return (
<>
<AppBar elevation={0}>
Expand Down Expand Up @@ -170,7 +171,7 @@ const Inspector: React.FC<IProps> = (props) => {
(editorRef.current as any).layout();
}
}}>
<JSONRPCRequest
<JSONRPCRequestEditor
onChange={(val) => {
setJson(JSON.parse(val));
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface IProps {
value: any;
}

const JSONRPCRequest: React.FC<IProps> = (props) => {
const JSONRPCRequestEditor: React.FC<IProps> = (props) => {
const editorRef = useRef();
const windowSize = useWindowSize();

Expand Down Expand Up @@ -95,4 +95,4 @@ const JSONRPCRequest: React.FC<IProps> = (props) => {
);
};

export default JSONRPCRequest;
export default JSONRPCRequestEditor;

0 comments on commit b756454

Please sign in to comment.